cURL
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>" }
Authenticate with API key and get a short-lived JWT token for browser use.
JWT or API key authentication using Bearer scheme
The response is of type object.
object
Was this page helpful?