---
title: "Get a quest"
method: GET
path: "/api/v1/quests/{id}"
tags: ["AI"]
---

# Get a quest

`GET /api/v1/quests/{id}`

## Request

- Base URL: `https://your-deployment.example.com`
- URL: `https://your-deployment.example.com/api/v1/quests/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Polls the outcome of a turn started by `POST /api/chat` or an async generation route. `status` `done` and `stopped` are terminal; `pending` and `running` are not. A finished turn that failed has `type: "error"` and, where classified, an `errorCode`; a `stopped` turn is also a failure even without `type: "error"`, and its `reply` is an explanation rather than an answer. A `404` covers a quest that does not exist, one whose session was deleted, and one the caller cannot see, so polling after deleting the session returns `404`. Safe (GET) requests are exempt from the per-day API-key quota: a poll consumes no daily slot, and only the per-minute burst limit applies.

## Path parameters

- `id` string, required: The quest id returned by POST /api/chat or another async start.

## Response `200`

The quest and its outcome so far.

- GetQuestResponse200
  - `id` string, required
  - `status` 'pending' | 'running' | 'done' | 'stopped'
  - `type` 'message' | 'oob' | 'error' | 'system' | 'voice_transcript'
  - `errorCode` 'insufficient_credits' | 'spend_cap_exceeded'
  - `reply` string, nullable
  - `replies` string[]
  - `fallbackInfo` object
    - `primaryModel` string, required
    - `primaryModelName` string, required
    - `fallbackModel` string, required
    - `fallbackModelName` string, required
    - `reason` string
  - `sessionId` string, required
  - `images` string[], required
  - `videos` string[], required
  - `files` object[], required
    - `name` string, required
    - `url` string, required: Presigned download URL. Short-lived (about an hour): fetch it promptly, do not store it.
    - `isImage` boolean, required
    - `isAudio` boolean, required
    - `isVideo` boolean, required
  - `toolPayloads` unknown[], required
    - unknown
  - `createdAt` string, date-time, nullable
  - `updatedAt` string, date-time, nullable
  - `promptMeta` object
  - `attachmentNotices` string[]
  - `attachmentDelivery` object
  - `executionTracking` unknown

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The API key does not hold any of the required scopes.
- `404`: No quest with that id is visible to the caller.
- `405`: The path does not serve this HTTP method.
- `422`: Request failed validation.
- `429`: Per-user rate limit exceeded.

---

[API](https://skmtc.dev/bike4mind/apis/bike4mind-api.md) · [All operations](https://skmtc.dev/bike4mind/apis/bike4mind-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bike4mind/apis/bike4mind-api/revisions/db47495b892f?raw)
