Skip to main content
POST
/
auth
/
get_token
Get Token
curl --request POST \
  --url https://api.svantic.com/auth/get_token \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "string",
  "client_secret": "string",
  "agent_type": "credential",
  "expires_in": 0
}
'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJjcmVkX2V4YW1wbGUiLCJ0ZW5hbnRfaWQiOiJ0ZW5fMDEifQ.signature"
}

Documentation Index

Fetch the complete documentation index at: https://docs.svantic.com/llms.txt

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

Body

application/json
client_id
string
required

Credential ID obtained from /internal/credentials/create.

client_secret
string
required

Client secret paired with the credential.

agent_type
string
default:credential

Logical agent type encoded into the JWT claims. Defaults to "credential" when omitted.

expires_in
number

Optional JWT lifetime in seconds (default 86400 = 24 hours).

Response

Token issued.

token
string
required

Signed JWT. Decode the payload to inspect claims: tenant_id, agent_type, scopes (array of "read" | "admin" | "full"), sub, iat, exp, and credential_id identifying the credential used.