Check an API key
Returns the workspace the request runs in, the key that sent it (access, resources, expiry) and its rate limit. Every key can call this, including read-only keys and keys limited to other resources. With `X-Workspace-Id`, an agency key sees the client workspace.
Returns the workspace the request runs in, the key that sent it (access, resources, expiry) and its rate limit. Every key can call this, including read-only keys and keys limited to other resources. With X-Workspace-Id, an agency key sees the client workspace.
X-API-Key<token>Create in the console: Settings → API & webhooks.
OK
application/json- response
apiKey*|The key that authenticated the request.
rateLimit*success?Successtrueworkspace*|Workspace the request runs in.
[key: string]?anycurl -X GET 'https://api.callmitra.ai/api/v1/workspace'{ "apiKey": { "id": "0d9e8f7a-6b5c-4d3e-2f1a-0b9c8d7e6f5a", "name": "CRM sync", "prefix": "vk_live_Ab3dE6", "scopes": { "access": "read", "resources": [ "calls", "leads" ] } }, "rateLimit": { "limit": 300, "windowSeconds": 60 }, "success": true, "workspace": { "id": "7b1c2f0e-1d2a-4c3b-9a8e-5f6d7c8b9a01", "name": "Acme Realty" }}Get usage and balance GET
Calls, talk time, billed minutes and wallet charges for a period, plus the current plan period and wallet balance. Defaults to the current billing period (or the last 30 days). `balance` is null when billing is not enabled on the deployment.
List client workspaces GET
For an agency: every client workspace it manages, oldest first. Send a client's `id` as `X-Workspace-Id` on any other request to run it inside that workspace. Every key of the agency can call this, whatever its resources; the key's user must be a manager. The workspace needs the agency add-on; without it, or from a client workspace, the call gets `permission_denied`.