POST
/
api
/
v1
/
ask_camel
curl --request POST \
  --url https://api.camelai.com/api/v1/ask_camel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "<string>",
  "source_id": 123,
  "source": {
    "type": "<string>",
    "account_name": "PostgreSQL",
    "hostname": "<string>",
    "port": 5432,
    "username": "<string>",
    "password": "<string>",
    "database_name": "<string>",
    "connection_string": "<string>",
    "selected_schemas": [
      "<string>"
    ]
  },
  "knowledge_base_entries": [
    "<string>"
  ],
  "reference_queries": [
    {
      "query": "<string>",
      "title": "<string>"
    }
  ]
}'
{
  "message": "<any>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Response serializer for ask_camel endpoint.