Skip to main content

Create DID

This request creates a DID using the data passed in the query body.

post/dids

Sample Request

A sample POST request to create a DID object:

> Creates a DID

```shell
curl -X POST \
'https://api.carrierx.com/conference/v1/dids' \
-H 'Content-Type: application/json' \
--data-binary '{"didGroupId":219, "phoneNumber": "15162065319"}' \
-u '[your_user_name]:[your_password]'

Response

200 status code with a serialized copy of the DID object:

{
"attributes": [],
"countryCode": "US",
"didGroupId": 219,
"id": 220,
"phoneNumber": "15162065319",
"state": -1
}

Body Arguments

JSON representation of the fields and values of the DID object to be created.

Required fields to create a DID are:

  • didGroupId
  • phoneNumber

Refer to this table to view all fields that appear in the DID object.