Endpoints
Site research
/v0/sites/{site_id}/researchTrigger AI research for a site
Trigger AI research for a site in the background.
Returns the current site data immediately. The research runs asynchronously;
poll GET /v0/sites/<site_id> and check researchFinished for completion.
Send ?quote=true to learn what the research would cost without starting
it: the site is looked up as the call would look it up, and the response is
the fee quote. Nothing is started or charged, so a quote is safe to repeat.
Send the quote’s confirmationToken back as ?confirmQuote= to start the
research at no more than the quoted price.
Parameters
site_idstringpath, requiredThe id of the site to research.
quotebooleanquery`true` to get what this call would cost without making it. The body is checked as the call would check it, and the response is a fee quote: nothing is created, changed, charged or sent. Leave it out, or send `false`, to make the call (an AI agent must confirm with `confirmQuote` instead). Any other value, or `quote` given more than once, is refused with `400`.
confirmQuotestringqueryThe `confirmationToken` of a quote for this same call, to make the call at no more than the quote's `totalHigh`. The method, path, query and body must be the ones that were quoted. A token is short-lived and is spent once the call starts, so a call that then fails needs a fresh quote. A person's or an API key's token is spent in memory, so it may be accepted again after a server restart within its lifetime; an AI agent's is journaled against its grant and is spent for good. An AI agent must send one: its call without a token is answered with the quote and not made. Anyone else may send one, or leave it out to make the call unconfirmed. Refused with `400` when it was altered or issued to another caller, when it is sent together with `quote=true`, or when `confirmQuote` is given more than once; with `409` when the call changed, the token expired or was already used, the call would now cost more than was quoted, or too many confirmations are outstanding, in which case retry shortly with the same token; and, for an AI agent, with `403` when the call would take it past the spending allowance it was given.
ReturnsSuccess
object | object
Errors
400401403404409500