Skip to main content
POST
/
api
/
core
/
service-accounts
/
token
Exchange service account API key for access token
curl --request POST \
  --url https://api.example.com/api/core/service-accounts/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "service_account_id": "<string>",
  "api_key": "<string>"
}
'
{
  "access_token": "<string>",
  "expires_in": 123,
  "token_type": "Bearer"
}

Documentation Index

Fetch the complete documentation index at: https://docs.genow.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: 'Bearer '

Body

application/json
service_account_id
string
required
api_key
string
required

Response

Successful Response

Response schema for token endpoints — refresh_token is in the HttpOnly cookie, not the body.

access_token
string
required
expires_in
integer
required
token_type
string
default:Bearer