Submit an async analysis request

Submit a single prompt for asynchronous analysis across selected providers and ISO location codes. The analysis is scoped to the project associated with the authenticated API key. This endpoint is gated behind special access. Contact support to enable async analysis for your organization.

POST /async-analysis

Submit an async analysis request

Submit a single prompt for asynchronous analysis across selected providers and ISO location codes. The analysis is scoped to the project associated with the authenticated API key. This endpoint is gated behind special access. Contact support to enable async analysis for your organization.

Authentication: API key required (Bearer token)

Request Body

FieldTypeRequiredDescription
promptstringYesThe search prompt to analyze across selected providers and locations (max 5,000 characters).
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