Skip to content

Request fields

Set every field of a task request: the engine, the prompt, the country, US state or city, your brand and competitors, and what the result includes.

View as Markdown

The body of POST /v1/tasks, POST /v1/sync/task and each batch item has the same shape: a taskType, a payload for the engine, and a few options.

Top-level fields

FieldTypeDescription
taskTypestringEngine to run. Required. Case-insensitive. See Engines.
payloadobjectEngine input, below. Required.
webhookUrlstring (url)Called with the finished task. Optional. Must be a public https URL.
idempotencyKeystringUp to 256 characters. Optional; same as the Idempotency-Key header.
priorityinteger 0..10Higher runs first within your account. Default 0.

Answer engines

FieldTypeDescription
promptstring1 to 4000 characters. Required.
countryISO2Market to ask from. Default US. See Countries and locations.
brandstringYour brand. Turns on the analysis block.
brandAliasesstring[]Other names that count as the brand.
brandDomainsstring[]Domains that count as citing the brand.
competitorsstring[]Brands to compare against, up to 50.
includeobjectBooleans: markdown (default true), html, rawHtml, rawResponse, screenshot, analysis. analysis runs the full answer analysis with sentiment, with or without a brand. html saves an evidence page.

Example

JSON
{
  "taskType": "CHATGPT",
  "payload": {
    "prompt": "best crm for a small agency",
    "country": "US",
    "brand": "Acme",
    "competitors": ["Globex", "Initech"],
    "include": { "analysis": true }
  },
  "priority": 0
}

A field the engine does not take, or a value out of range, answers 400 VALIDATION_ERROR with the path of each problem in error.details.

Last updated