Skip to content

Get a guide

A guide's summary, unknowns, rollout steps and claim headers

GET /api/v1/guides/{guide}

Personal token · read

Example request

Link to this section
Shell
# Set your token and resource IDs first.
API_BASE_URL="https://app.theseus.dev/api/v1"

curl --fail-with-body --request GET \
  -H "Authorization: Bearer ${THESEUS_API_TOKEN:?}" \
  "${API_BASE_URL}/guides/${GUIDE_ID:?}"
NameInTypeDescription
guide requiredpathstringA guide ID (ver_…)

Pattern ^ver_[0-9A-Z]{26}$

The guide

Response fields

Content type application/json

  • id string required

  • changeset_id string required

  • status string required

    Only a ready guide has content. New statuses may be added

    One of in_progress, ready, failed

  • error string or null required

  • head_sha string or null required

    The commit the guide describes

  • created_at string required

  • url string (uri) required

    The guide in the web app

  • summary string or null required

  • custom_metadata_error string or null required

    Safe reason metadata was not evaluated after a terminal failure; null when no terminal failure is recorded. An empty results array alone is not a negative answer

  • custom_metadata_results array of CustomMetadataResult required

    Saved custom answers with their historical question snapshots; empty when none exist

    custom_metadata_results fields
    • id string required

    • guide_id string required

    • model string required

    • evaluated_at integer required

      Evaluation time, milliseconds since the Unix epoch

      Minimum 0

    • question one of required

      Exact saved question and historical options or score levels; user-controlled text

      question variants

      One of:

      type: probability

      • type string required

        Always probability

      • question string required

        Minimum length 1 · Maximum length 4000

      • id string required

        Pattern ^mdq_[0-9A-HJKMNP-TV-Z]{26}$

      type: choice

      • type string required

        Always choice

      • question string required

        Minimum length 1 · Maximum length 4000

      • options array of object required

        Minimum items 2 · Maximum items 20

        options fields
        • label string required

          Minimum length 1 · Maximum length 120

        • description string

          Minimum length 1 · Maximum length 1000

      • id string required

        Pattern ^mdq_[0-9A-HJKMNP-TV-Z]{26}$

      type: score

      • type string required

        Always score

      • question string required

        Minimum length 1 · Maximum length 4000

      • levels array of object required

        Minimum items 2 · Maximum items 20

        levels fields
        • label string required

          Minimum length 1 · Maximum length 120

        • description string required

          Minimum length 1 · Maximum length 1000

      • id string required

        Pattern ^mdq_[0-9A-HJKMNP-TV-Z]{26}$

    • evidence object or null required

      Source-backed context, verified quotations and any uncertainty; null for historical guide-only answers

      evidence fields
      • context string required

      • sources array of object required

        Maximum items 6

        sources fields
        • label string required

          Minimum length 1

        • path string or null required

        • side string or null required

          One of before, after, null

        • commit string or null required

        • quote string required

          Minimum length 1 · Maximum length 1200

      • uncertainty string or null required

        Minimum length 1

    • answer one of required

      Saved typed answer. Scores are zero-based positions in question.levels, including fractional positions; the UI displays score + 1 out of levels.length. Probabilities are from 0 to 1

      answer variants

      One of:

      type: probability

      • type string required

        Always probability

      • probability number required

        Minimum 0 · Maximum 1

      type: choice

      • type string required

        Always choice

      • choice string required

        Minimum length 1 · Maximum length 120

      type: score

      • type string required

        Always score

      • score number required

        Minimum 0 · Maximum 19

  • custom_metadata_unresolved_results array of CustomMetadataUnresolvedResult required

    Saved unanswered questions with source evidence and uncertainty reasons; empty when none exist

    custom_metadata_unresolved_results fields
    • id string required

    • guide_id string required

    • model string required

    • evaluated_at integer required

      Evaluation time, milliseconds since the Unix epoch

      Minimum 0

    • question one of required

      Exact saved question and historical options or score levels; user-controlled text

      question variants

      One of:

      type: probability

      • type string required

        Always probability

      • question string required

        Minimum length 1 · Maximum length 4000

      • id string required

        Pattern ^mdq_[0-9A-HJKMNP-TV-Z]{26}$

      type: choice

      • type string required

        Always choice

      • question string required

        Minimum length 1 · Maximum length 4000

      • options array of object required

        Minimum items 2 · Maximum items 20

        options fields
        • label string required

          Minimum length 1 · Maximum length 120

        • description string

          Minimum length 1 · Maximum length 1000

      • id string required

        Pattern ^mdq_[0-9A-HJKMNP-TV-Z]{26}$

      type: score

      • type string required

        Always score

      • question string required

        Minimum length 1 · Maximum length 4000

      • levels array of object required

        Minimum items 2 · Maximum items 20

        levels fields
        • label string required

          Minimum length 1 · Maximum length 120

        • description string required

          Minimum length 1 · Maximum length 1000

      • id string required

        Pattern ^mdq_[0-9A-HJKMNP-TV-Z]{26}$

    • evidence object or null required

      Source-backed context, verified quotations and any uncertainty; null for historical guide-only answers

      evidence fields
      • context string required

      • sources array of object required

        Maximum items 6

        sources fields
        • label string required

          Minimum length 1

        • path string or null required

        • side string or null required

          One of before, after, null

        • commit string or null required

        • quote string required

          Minimum length 1 · Maximum length 1200

      • uncertainty string or null required

        Minimum length 1

    • reason string required

      Saved reason source evidence could not resolve the question; not a negative answer

  • unknowns array of object required

    unknowns fields
    • id string required

    • statement string required

    • why string required

      Why the code cannot settle it

    • evidence string required

  • rollout_steps array of object required

    rollout_steps fields
    • title string required

    • action string required

      Markdown: what to do

    • why string required

    • kind string required

      One of migration, manual, secret, deploy, monitor

    • when string required

      One of before-merge, deploy, after-deploy

    • check object or null required

      Whether the change as it stands breaks the step

      check fields
      • status string required

        One of fails, unverified

      • note string required

  • claims array of ClaimHeader required

    Every claim, most important first; read one for its body

    claims fields
    • id string required

      Example chg_01K6Z3M4N5P6Q7R8S9T0V1W2X3

    • guide_id string required

      The guide this claim belongs to

    • position integer required

      Its place in priority order, from 0

    • title string required

    • summary string required

Example responses

Link to this section

Ready guide

Illustrative response · selected fields

{
  "id": "ver_EXAMPLE",
  "changeset_id": "set_EXAMPLE",
  "status": "ready",
  "error": null,
  "summary": "Notifications keep working when the connection returns.",
  "claims": [
    {
      "id": "chg_EXAMPLE",
      "guide_id": "ver_EXAMPLE",
      "position": 0,
      "title": "Notifications survive a reconnect",
      "summary": "Reconnecting keeps the existing notification preference."
    }
  ],
  "unknowns": [],
  "rollout_steps": []
}
400 · The request is not valid

Error response fields

401 · A valid bearer token is required

Error response fields

403 · The credential's scopes do not allow this

Error response fields

404 · Not found

Error response fields

426 · Upgrade the CLI: run theseus update

Error response fields

429 · Too many requests

Headers

  • Retry-After integer

    Seconds to wait before the next request, when known

Error response fields

503 · Theseus is unavailable; retry the same request

Headers

  • Retry-After integer

    Seconds to wait before the next request, when known

Error response fields

Error response fields

Content type application/problem+json

  • type string (uri) required

    Identifies the problem type; branch on code instead

  • title string required

  • status integer required

  • detail string

  • code string required

    Why the request failed. New codes may be added: treat an unknown one by its status

    One of invalid_request, unauthenticated, not_in_plan, insufficient_scope, admission_required, not_found, ambiguous, conflict, rate_limited, internal_error, unavailable, search_authorization_pending, search_unavailable, cli_upgrade_required

  • request_id string required

    Quote this when reporting the problem

  • errors array of FieldError

    With invalid_request: what is wrong with each field

    errors fields
    • path string required

      Where in the request, as dotted segments

    • message string required

  • required_scope string

    With insufficient_scope: the scope the operation needs

  • next string

    Recovery action, such as theseus update

  • candidates array of Candidate

    With ambiguous: what the request could mean; ask which

    candidates fields
    • id string required

    • path string required

    • kind string required

    • title string required

    • url string (uri) required