Integrations
POST
/api/v1/integrations/{integration_id}/set-default

Mark this integration as the default for its (org, platform).

Atomically clears the default flag on every other row for the same (org, platform) so the partial unique index in migration 028 holds.

Authorization

AuthorizationBearer <token>

JWT access token. Use: Authorization: Bearer .

In: header

Path Parameters

integration_id*Integration Id
Formatuuid

Header Parameters

Authorization?string|null
X-API-Key?string|null
X-EFFICIENTAI-API-KEY?string|null
X-Workspace-Id?string

Optional workspace scope. When omitted, the backend uses the active/default workspace from your organization context.

Formatuuid

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/integrations/497f6eca-6276-4993-bfeb-53cbbbba6f08/set-default"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "platform": "retell",  "name": "string",  "public_key": "string",  "is_active": true,  "is_default": false,  "routing_mode": "inherit",  "effective_routing": "inherit",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "last_tested_at": "2019-08-24T14:15:22Z"}

Community & contact

  1. Found a bug or have a feature request? Open a GitHub issue.
  2. Join our Discord for faster replies!