Setup Inbound Agent
Phone Numbers
Setup Inbound Agent
POST
Setup Inbound Agent
Configure a phone number to route inbound calls to a specific voice AI assistant.
Overview
This endpoint links an assistant to a phone number so that incoming calls to that number are handled by the specified agent. Use this after you have provisioned a phone number and created an assistant.Request
Headers
| Header | Value | Required |
|---|---|---|
x-api-key | Your API key | Yes |
Content-Type | application/json | Yes |
accept | */* | No |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
assistantId | String | Yes | ID of the assistant to handle inbound calls |
phoneNumberId | String | Yes | ID of the phone number to configure for inbound routing |
Example Request
Response
Success Response (200)
Inbound agent configured successfully.Error Responses
| Status Code | Description |
|---|---|
| 400 | Missing required fields |
| 404 | Assistant or phone number not found |
| 500 | Failed to setup inbound agent |
Use Cases
- Inbound AI front desk: Route incoming calls to a support or reception assistant
- After-hours handling: Direct callers to an AI agent outside business hours
- Programmatic setup: Configure inbound routing as part of your onboarding or deployment workflow
Related Endpoints
- List Phone Numbers - Retrieve available phone numbers and their IDs
- List Assistants - Retrieve assistant IDs to use with inbound routing