Submit an async analysis request

Submit one or more prompts for asynchronous analysis across selected providers and ISO location codes. Project-scoped API keys use the project analysis brand. Organization-scoped API keys must provide `brandName` and spend prepaid API credits.

POST /async-analysis

Submit an async analysis request

Submit one or more prompts for asynchronous analysis across selected providers and ISO location codes. Project-scoped API keys use the project analysis brand. Organization-scoped API keys must provide `brandName` and spend prepaid API credits.

Authentication: API key required (Bearer token)

Request Body

FieldTypeRequiredDescription
promptstringNoThe search prompt to analyze across selected providers and locations (max 5,000 characters). Use either prompt or prompts.
promptsarrayNoMultiple search prompts to analyze as one async request. Use either prompt or prompts. Total credits reserved = prompts.length × replicates × providers.length × locations.length.
brandNamestringNoTarget brand used to compute analysis metrics. Required when using an organization-scoped API key; ignored/rejected for project-scoped keys where the project analysis brand is used.
replicatesintegerYesNumber of replicates to run per provider-location pair. Total credits reserved = replicates × providers.length × locations.length.
providersarrayYesProvider IDs to run for this async analysis. Invalid provider-location combinations are rejected with a 400 error.
locationsarrayYesISO 3166-1 alpha-2 location codes to run for this async analysis. Invalid provider-location combinations are rejected with a 400 error.
webhookobjectNoOptional webhook configuration. When provided, the webhook is called on both analysis success and failure, with automatic retries for up to 24 hours if delivery fails.

Request Example

curl -X POST https://sellm.io/api/v1/async-analysis \
  -H "Authorization: Bearer sellm_your_api_key_here" \
  -H "Content-Type: application/json"

Responses

StatusDescription
202Async analysis accepted for processing. The analysis has been queued but has not necessarily started yet. Use the GET endpoint to poll for status and results.
400Bad request
401Unauthorized
403Feature not enabled or credits exceeded
404Project not found
429Rate limited
500Internal error