curl --request POST \
--url https://api.comm.com/api/v1/voice/numbers/sip \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"voice_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": 123,
"sip_domain": "<string>",
"sip_username": "<string>",
"sip_password": "<string>",
"sip_byoc_token": "<string>",
"inbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"disallowed_countries": [
123
]
}'
{
"data": {
"id": "<string>",
"number": 123,
"voice_account_id": "<string>",
"inbound_agent_id": "<string>",
"sip_config": "<string>",
"disallowed_countries": "<string>",
"team_id": "<string>",
"voice_provider": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
curl --request POST \
--url https://api.comm.com/api/v1/voice/numbers/sip \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"voice_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": 123,
"sip_domain": "<string>",
"sip_username": "<string>",
"sip_password": "<string>",
"sip_byoc_token": "<string>",
"inbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"disallowed_countries": [
123
]
}'
{
"data": {
"id": "<string>",
"number": 123,
"voice_account_id": "<string>",
"inbound_agent_id": "<string>",
"sip_config": "<string>",
"disallowed_countries": "<string>",
"team_id": "<string>",
"voice_provider": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
NumberResource
The response is of type object
.