POST
/
api
/
v1
/
token
Issue STS Token
curl --request POST \
  --url https://api.camelai.com/api/v1/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "uid": "<string>",
  "scopes": [
    "query"
  ],
  "ttl": 900,
  "src": "<string>",
  "srcs": [
    "<string>"
  ],
  "knowledge_base_entries": [
    "<string>"
  ],
  "reference_queries": [
    {}
  ]
}'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123,
  "thread_id": "<string>"
}

Authorizations

Authorization
string
header
required

JWT or API key authentication using Bearer scheme

Body

application/json

Response

200
application/json

The response is of type object.