MCP is live.Set upAsk the community
OmniDimension
Phone numbers

Attach phone number to agent

Attach a phone number to an existing agent. Without user_id, use any number and agent your key can manage. With user_id, the number and the agent must both belong to that client.

POST/phone_number/attach
Body
3 fields
·

ID of the phone number to attach.

ID of the agent to attach the phone number to.

Reseller accounts only: the client to act on. Omit it to act on your own account.

curl -X POST 'https://omnidim.io/api/v1/phone_number/attach' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "phone_number_id": 23,
  "agent_id": 158910,
  "user_id": 1234
}'
Example response
{
  "phone_number_id": 23,
  "message": "Phone Number +15551234567 Attach Successfully."
}

Authorization

BearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Obtain your API key from the OmniDimension dashboard.

Request Body

application/json
phone_number_id*integer

ID of the phone number to attach.

agent_id*integer

ID of the agent to attach the phone number to.

user_id?integer

Reseller accounts only: the client to act on. Omit it to act on your own account.

Response body

application/json

Response Body

Phone number attached.

application/json
phone_number_id?integer
message?string

Was this page helpful?