ask_camel
knowledge-base
recommendations
reference-queries
sources
- GETList data sources
- POSTAdd connection
- GETGet data source details
- PUTUpdate data source
- DELDelete data source
- PATCHPartial update data source
- PATCHUpdate data source configuration
- POSTAdd connection (legacy route)
- POSTAdd BigQuery connection
- POSTAdd ClickHouse connection
- POSTAdd MongoDB connection
- POSTAdd MotherDuck connection
- POSTAdd SQL Server connection
- POSTAdd MySQL connection
- POSTAdd PostgreSQL connection
- POSTAdd SingleStore connection
- POSTAdd Snowflake connection
STS
Issue STS Token
Authenticate with API key and get a short-lived JWT token for browser use.
POST
/
api
/
v1
/
token
Copy
Ask AI
curl --request POST \
--url https://api.camelai.com/api/v1/token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sub": "<string>",
"scopes": [
"query"
],
"ttl": 900,
"src": "<string>",
"tid": "<string>"
}'
Copy
Ask AI
{
"access_token": "<string>",
"token_type": "<string>",
"expires_in": 123,
"thread_id": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.camelai.com/api/v1/token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"sub": "<string>",
"scopes": [
"query"
],
"ttl": 900,
"src": "<string>",
"tid": "<string>"
}'
Copy
Ask AI
{
"access_token": "<string>",
"token_type": "<string>",
"expires_in": 123,
"thread_id": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.