https://app.lokam.si/api/* Scope: workspace:auth

Authentication & Security

All requests to Lokam REST endpoints require standard Bearer token authentication via an API Key generated in Workspace Settings → API Keys. Every key is bound to explicit headless RBAC permissions.

Request Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer <api_key> (e.g. Bearer lokam_live_sk_...)
Content-TypestringYesapplication/json for all mutation endpoints
X-Workspace-IdstringNoOptional explicit workspace context for multi-tenant accounts

Request Example (curl)

curl -X GET https://app.lokam.si/api/telephony/calls/ \
  -H "Authorization: Bearer lokam_live_sk_948f9210ab" \
  -H "Content-Type: application/json"

Response Example

200 OK
{
  "success": true,
  "workspace_id": "org_948201",
  "authenticated": true,
  "scopes": [
    "telephony:call",
    "messaging:send",
    "knowledge:search"
  ]
}