POST
Assign Number to Agent
Assigns an owned phone number to an Agent.
POST
https://api.vantaxai.com/v1/phone-numbers/{phone_number_id}/assignOnce assigned, inbound calls and messages to the number are handled by the Agent. A number maps to exactly one Agent, and an Agent can hold only one number at a time. The Agent must belong to the same sub-account as the number.
Headers
AuthorizationstringrequiredBearer authentication with your secret API key.
example: Bearer vx_live_3fa9c2…
Content-TypestringrequiredMust be application/json for requests with a body.
example: application/json
Path Parameters
phone_number_idstringrequiredThe phone number to assign.
example: pn_55ad12
Body Parameters
agent_idstringrequiredThe Agent that will own the number.
example: agt_3d9b21