run_unavailable
HTTP 422 · The AI answers run couldn't start.
Why it happens
- The last run was less than a day ago. A run costs money (one call per question and assistant), so there's one a day at most.
- The site has no questions yet.
- Pluma has no AI provider key configured.
details.reason says which one.
How to fix it
Read the last results with get_answers or GET /api/v1/spaces/:space_id/answers meanwhile. If the site has no questions, set them with update_questions. The weekly run on Monday asks them anyway. See AI answers.
Example
{
"error": {
"code": "run_unavailable",
"message": "The AI answers run couldn't start.",
"fix": "details.reason says why: the site has no questions yet, the last run was less than a day ago, or Pluma has no AI provider key. Read the last results with get_answers meanwhile.",
"doc_url": "https://pluma.so/docs/errors/run_unavailable",
"details": { "reason": "The last run was less than a day ago (one run a day at most)." }
}
}