Endpoints
Endpoints define where inbound calls are routed. They can point to AI voice providers (ElevenLabs, Vapi, Retell) or custom webhook URLs.
Base URL: https://api.krosai.com/v1/endpoints
Endpoint Types
| AI voice provider | ElevenLabs, Vapi, Retell, LiveKit |
| HTTP webhook | Custom server handling |
List Endpoints
Retrieve all endpoints for your organization.
Endpoint
GET /endpoints
Query Parameters
| string | Filter by type: |
| string | Filter by status: |
| integer | Number of results (default: 50) |
| integer | Pagination offset |
Create Endpoint
Create a new endpoint for call routing.
Endpoint
POST /endpoints
Request Body
| string | Yes | Descriptive name |
| string | Yes |
|
| string | Yes | SIP URI or webhook URL |
| object | For agents | Provider-specific configuration |
Update Endpoint
Update an existing endpoint.
Endpoint
PATCH /endpoints/{id}
Request Body
| string | New name |
| string | New SIP URI or webhook URL |
| string |
|
| object | Updated provider configuration |
Request
Response
Delete Endpoint
Delete an endpoint. Phone numbers attached to this endpoint will need to be reconfigured.
Endpoint
DELETE /endpoints/{id}
Warning: Deleting an endpoint will cause any attached phone numbers to stop receiving calls until a new endpoint is assigned.
On this page
- Endpoints