v3
latestOpenAPI 3.1.02026-08-0755220214.3 KBAdd Custom Phone Number
Adds a custom phone number to an agent. The user must configure their SIP trunk to point to Phonic's SIP server.
Path parameters
The name or the ID of the agent.
Query parameters
The name of the project containing the agent. Only used when nameOrId is a name.
Headers
Bearer authentication header of the form Bearer <PHONIC_API_KEY>. Manage your API keys here.
SIP address of the user's SIP trunk. Required. All three SIP headers (X-Sip-Address, X-Sip-Auth-Username, X-Sip-Auth-Password) must be provided. They are used for outbound calls and call transfers from the agent.
SIP auth username. Required. All three SIP headers (X-Sip-Address, X-Sip-Auth-Username, X-Sip-Auth-Password) must be provided. They are used for outbound calls and call transfers from the agent.
SIP auth password. Required. All three SIP headers (X-Sip-Address, X-Sip-Auth-Username, X-Sip-Auth-Password) must be provided. They are used for outbound calls and call transfers from the agent.
Request body
Response
Success response