Exchanges a credential pair (client_id + client_secret) for a signed JWT. The client_id is a credential_id obtained from /internal/credentials/create. Optional expires_in controls the JWT lifetime in seconds (default: 86400 = 24 hours).
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.
Credential ID obtained from /internal/credentials/create.
Client secret paired with the credential.
Logical agent type encoded into the JWT claims. Defaults to "credential" when omitted.
Optional JWT lifetime in seconds (default 86400 = 24 hours).
Token issued.
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.
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"
}