Syndai Docs

Get the calling API key

GET
/api/v1/external/coding/me

Return the calling API key's workspace, key id, name, scopes and expiry; never its secret. API keys only: a signed-in browser session is a 401. A syndai CLI below the minimum supported version is a 426.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Response Body

Request fulfilled, document follows

application/json
  1. response
customer_id*string
Formatuuid
expires_at?|null
key_id*string
Formatuuid
key_name*string
scopes*array<string>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/me'
Example Response
{  "customer_id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",  "expires_at": null,  "key_id": "0f1e2d3c-4b5a-4968-8776-655443322110",  "key_name": "CI deploy bot",  "scopes": [    "coding:runs:create",    "coding:runs:read"  ]}