Skip to main content
POST
/
api
/
queries
Create prompt
curl --request POST \
  --url http://localhost:8000/api/queries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "brandId": "<string>",
  "queryText": "<string>",
  "platform": "CHATGPT",
  "location": "<string>",
  "scheduledAt": "2023-11-07T05:31:56Z"
}
'

Authorizations

Authorization
string
header
required

JWT token from login. Use: Authorization: Bearer <token>

Body

application/json
brandId
string
required
queryText
string
required
platform
enum<string>
Available options:
CHATGPT,
CLAUDE,
GEMINI,
PERPLEXITY
location
string
scheduledAt
string<date-time>

Response

Created, query runs immediately