Endpoints

Configure webhook and AI agent endpoints (Vapi, Retell, LiveKit, Custom SIP)

List endpoints

get

Retrieves all configured endpoints (webhooks and AI agents)

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
chevron-right
200

List of endpoints

application/json
get
/endpoints

Create endpoint

post

Creates a new endpoint for call routing. Supports multiple provider types:

  • webhook: Custom HTTP endpoint receiving call events

  • vapi: Vapi AI voice agent

  • retell: Retell AI voice agent

  • livekit: LiveKit real-time communication

  • custom_sip: Custom SIP endpoint

For AI providers (vapi, retell, livekit), the SIP URI is auto-generated.

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Body
namestring · max: 100Required
typestring · enumRequiredPossible values:
urlstring · uriOptional

Required for webhook and custom_sip types

phone_number_idstring · uuidOptional

Optional phone number to attach during creation

Responses
post
/endpoints

Get endpoint details

get
Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Path parameters
idstring · uuidRequired

Endpoint UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
chevron-right
200

Endpoint details

application/json
get
/endpoints/{id}

Delete endpoint

delete
Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Path parameters
idstring · uuidRequired

Endpoint UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
delete
/endpoints/{id}

No content

Update endpoint

patch
Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Path parameters
idstring · uuidRequired

Endpoint UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Body
namestring · max: 100Optional
urlstring · uriOptional
statusstring · enumOptionalPossible values:
Responses
chevron-right
200

Endpoint updated

application/json
patch
/endpoints/{id}

Last updated