Skip to main content

API Reference

The Oktivo API enables programmatic access to voice calling, token management, and webhook configuration.

Base URL

All API endpoints are served over HTTPS. HTTP requests are rejected.

Authentication

The dashboard paths /webhooks/endpoints/* (JWT only) behave the same as /api/v1/crm/webhooks/endpoints/*; use the /api/v1/crm form with an API token. See Authentication for details on token creation and management.

Rate Limits

Responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. When you are rate limited you receive a 429 response with a Retry-After header. See Rate limits and headers.

Error Format

v1 errors look like this:
v2 uses { "success": false, "requestId", "error": { "code", "message", "details" } }. See Errors for both envelopes and the code list.

HTTP Status Codes

Pagination

v1 list endpoints that page their results return a pagination object and take ?page=2&pageSize=50:
pagination is the original object and is frozen. meta repeats its keys; read meta in new code. Every v1 success body also carries requestId and timestamp. v2 returns meta and uses a cursor for calls and events. See Pagination and filtering.

Request Format

  • All request bodies must be JSON (Content-Type: application/json)
  • Path parameters are included in the URL (e.g., /calls/{contactUID})
  • Query parameters are used for filtering and pagination
  • Send an Idempotency-Key header on POST requests you may retry. See Idempotency
  • Send an optional X-Request-ID header, and quote the X-Request-ID response header in support requests. See Request IDs

API Versioning

Two versions are available. The version is part of the URL path:
v1 is current and supported. Its responses are a superset of the original ones (see Versioning and compatibility). v2 covers calls, the call queue, events, webhooks, agents, leads and tickets, and uses the same API tokens. The v2 contract is published at https://client-backend.oktivo.com/api/v2/openapi.json. See Versioning and compatibility and Migrating from v1 to v2.