Skip to main content

Integration

Check the credential you are calling with: its scopes, sources and campaigns.

Describe the current credential

GET/v1/integrations

Scope none (any valid key)

Returns what the calling credential may do: its scopes, the sources it may submit to, the campaigns whose recordings it may read, the workspace operations it is granted and whether it can read the change feed. Call this first to check that a new key is set up the way you expect. Needs no particular scope.

Responses

The credential's grants.

  • idstring (uuid)required

    API key ID or environment integration ID.

  • kindenumrequired

    API_KEY for tenant-managed keys (lms_…), ENVIRONMENT for legacy credentials configured on the server.

    One ofAPI_KEYENVIRONMENT

  • scopesarray of enum or nullrequired

    Scopes of an API key; null for environment credentials.

    One ofleads.readleads.writeintake.readintake.writeownership.readownership.writecalling.readcalling.writereports.readreports.writequality.readquality.writevoicebot.readvoicebot.writecampaigns.readcampaigns.writeteam.readteam.writeaudit.readmedia.readevents.readintake.submitrecordings.read

  • sourceIdsarray of string (uuid)required

    Sources this credential may submit to.

  • recordingCampaignIdsarray of string (uuid)required

    Campaigns whose call recordings this credential may download.

  • operationsarray of stringrequired

    Workspace operations granted, as METHOD /path relative to /v1/tenants/{tenantSlug}. Path parameters are written :leadId here (the route catalogue form); the reference writes the same path /lms/leads/{leadId}.

  • eventFeedbooleanrequired

    Whether the change feed is available.

Errors

Only the errors every operation shares: 401 invalid key, 429 rate limited and 500 unexpected error. Errors and retries

Request
BASE="https://lms.iotindia.ai/v1/integrations"curl "$BASE" \  -H "Authorization: Bearer $LMS_API_KEY"
Example response (200 OK) (200 OK)
{  "id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",  "kind": "API_KEY",  "scopes": [    "leads.read",    "leads.write",    "events.read",    "intake.submit"  ],  "sourceIds": [    "1f2e3d4c-5b6a-4798-8a7b-6c5d4e3f2a1b"  ],  "recordingCampaignIds": [],  "operations": [    "GET /lms/leads",    "GET /lms/leads/:leadId",    "POST /lms/leads"  ],  "eventFeed": true}
    Integration API · IoTIndia developers