POST
/
api
/
v1
/
reference-queries
/
Create reference query
curl --request POST \
  --url https://api.camelai.com/api/v1/reference-queries/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "title": "<string>",
  "connection_id": 123,
  "source_type": "USER"
}'
{
  "id": 123,
  "query": "<string>",
  "title": "<string>",
  "detailed_description": "<string>",
  "connection_id": 123,
  "source_type": "USER",
  "status": "PROCESSING",
  "error_message": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "last_modified": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Serializer for Reference Query model instances.

query
string
required
Minimum length: 1
connection_id
integer
required

Connection ID this query applies to

title
string | null
source_type
enum<string> | null
  • USER - User Provided
  • AI - AI Generated
  • TABLE - Table
Available options:
USER,
AI,
TABLE,

Response

201 - application/json

Serializer for Reference Query model instances.

id
integer
required
query
string
required
detailed_description
string | null
required
connection_id
integer
required

Connection ID this query applies to

status
enum<string>
required
  • PROCESSING - Processing
  • ERROR - Error
  • VALID - Valid
  • TEMPORARY - Temporary
Available options:
PROCESSING,
ERROR,
VALID,
TEMPORARY
error_message
string | null
required
created_at
string<date-time>
required
last_modified
string<date-time>
required
title
string | null
source_type
enum<string> | null
  • USER - User Provided
  • AI - AI Generated
  • TABLE - Table
Available options:
USER,
AI,
TABLE,