Ask a support question
Asks the Zernio Support Assistant a question about your workspace. Each question starts a run that answers asynchronously.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Body
application/jsonWhat every request needs
The question. Leading and trailing whitespace is trimmed.
Optional parameters3 fields
Continue this thread. The thread must have a run started by your team, and no run in progress.
Ids the assistant should look at. postId, accountId and profileId must belong to your workspace (404 otherwise).
3Cost cap for this run, in USD. The run stops at the cap and bills at most this amount.
Headers
OptionalOptional client-generated unique key (e.g. a UUID) that makes retries safe.
- Same key + same body: replays the original response.
- Same key + different body: 422.
- Key still processing: 409.
A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
Responses
Success· the request worked
Errors· the request failed
How it behaves
How a run works
- This returns 202 with a
runId. - The answer arrives through the
support.run.completedandsupport.run.failedwebhooks.GET /v1/support/runs/{runId}is the fallback. - When the assistant finds a problem on Zernio's side, it opens a support ticket with the team (see
supportTicketon the run) and the run ends asneeds_human.
Pass threadId to continue an earlier conversation, and context to point the assistant at a post, account, profile or a failed request (its X-Request-Id).
Pricing
You pay per question, once it finishes. The exact amount charged is the run's costUsd.
| Question | You pay |
|---|---|
| Typical question | $0.10 to $0.50 |
| Most one question can cost | Its maxCostUsd: $0.50 to $3, $3 by default |
Handed to the Zernio team (needs_human) | Charged like an answered question |
| Failed or expired | $0 |
| All questions in a UTC month | At most $100 per account |
Near its maxCostUsd a run stops investigating and answers with what it found so far, so it never charges more than the cap. With nothing to answer yet, it fails and costs nothing. Charges appear as "Support API" on your invoice.
Requirements and limits
- Requires an unrestricted API key, usage-based billing and a card on file.
- Limits per account: 3 active runs and $100 of runs per UTC month.
- Send an Idempotency-Key header to make retries safe.
List a thread's support answers
Lists the runs of one thread that your team started, with each question and its answer, oldest first. - Replies from the Zernio team after a support ticket arrive by email and are not included. - Runs are kept for 90 days. Page through a long thread with `limit` and `cursor`: pass `nextCursor` as `cursor` until it is null.
Get a support answer
Returns a run started by your team, with the answer once it is ready. Prefer the `support.run.completed` and `support.run.failed` webhooks. Use this as the fallback, waiting `pollAfterSeconds` between polls. `costUsd` is the amount billed for the question, never above `maxCostUsd`, and 0 for a failed run (pricing on Ask a support question).