Get a guide
A guide's summary, unknowns, rollout steps and claim headers
GET /api/v1/guides/{guide}
Example request
Link to this section# 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:?}"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
guide required | path | string | A guide ID (ver_…)Pattern |
Responses
Link to this sectionThe guide
Response fields
Content type application/json
idstring requiredchangeset_idstring requiredstatusstring requiredOnly a ready guide has content. New statuses may be added
One of
in_progress,ready,failederrorstring or null requiredhead_shastring or null requiredThe commit the guide describes
created_atstring requiredurlstring (uri) requiredThe guide in the web app
summarystring or null requiredcustom_metadata_errorstring or null requiredSafe 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_resultsarray of CustomMetadataResult requiredSaved custom answers with their historical question snapshots; empty when none exist
custom_metadata_results fields
idstring requiredguide_idstring requiredmodelstring requiredevaluated_atinteger requiredEvaluation time, milliseconds since the Unix epoch
Minimum
0questionone of requiredExact saved question and historical options or score levels; user-controlled text
question variants
One of:
type: probability
typestring requiredAlways
probabilityquestionstring requiredMinimum length
1· Maximum length4000idstring requiredPattern
^mdq_[0-9A-HJKMNP-TV-Z]{26}$
type: choice
typestring requiredAlways
choicequestionstring requiredMinimum length
1· Maximum length4000optionsarray of object requiredMinimum items
2· Maximum items20options fields
labelstring requiredMinimum length
1· Maximum length120descriptionstringMinimum length
1· Maximum length1000
idstring requiredPattern
^mdq_[0-9A-HJKMNP-TV-Z]{26}$
type: score
typestring requiredAlways
scorequestionstring requiredMinimum length
1· Maximum length4000levelsarray of object requiredMinimum items
2· Maximum items20levels fields
labelstring requiredMinimum length
1· Maximum length120descriptionstring requiredMinimum length
1· Maximum length1000
idstring requiredPattern
^mdq_[0-9A-HJKMNP-TV-Z]{26}$
evidenceobject or null requiredSource-backed context, verified quotations and any uncertainty; null for historical guide-only answers
evidence fields
contextstring requiredsourcesarray of object requiredMaximum items
6sources fields
labelstring requiredMinimum length
1pathstring or null requiredsidestring or null requiredOne of
before,after,nullcommitstring or null requiredquotestring requiredMinimum length
1· Maximum length1200
uncertaintystring or null requiredMinimum length
1
answerone of requiredSaved 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
typestring requiredAlways
probabilityprobabilitynumber requiredMinimum
0· Maximum1
type: choice
typestring requiredAlways
choicechoicestring requiredMinimum length
1· Maximum length120
type: score
typestring requiredAlways
scorescorenumber requiredMinimum
0· Maximum19
custom_metadata_unresolved_resultsarray of CustomMetadataUnresolvedResult requiredSaved unanswered questions with source evidence and uncertainty reasons; empty when none exist
custom_metadata_unresolved_results fields
idstring requiredguide_idstring requiredmodelstring requiredevaluated_atinteger requiredEvaluation time, milliseconds since the Unix epoch
Minimum
0questionone of requiredExact saved question and historical options or score levels; user-controlled text
question variants
One of:
type: probability
typestring requiredAlways
probabilityquestionstring requiredMinimum length
1· Maximum length4000idstring requiredPattern
^mdq_[0-9A-HJKMNP-TV-Z]{26}$
type: choice
typestring requiredAlways
choicequestionstring requiredMinimum length
1· Maximum length4000optionsarray of object requiredMinimum items
2· Maximum items20options fields
labelstring requiredMinimum length
1· Maximum length120descriptionstringMinimum length
1· Maximum length1000
idstring requiredPattern
^mdq_[0-9A-HJKMNP-TV-Z]{26}$
type: score
typestring requiredAlways
scorequestionstring requiredMinimum length
1· Maximum length4000levelsarray of object requiredMinimum items
2· Maximum items20levels fields
labelstring requiredMinimum length
1· Maximum length120descriptionstring requiredMinimum length
1· Maximum length1000
idstring requiredPattern
^mdq_[0-9A-HJKMNP-TV-Z]{26}$
evidenceobject or null requiredSource-backed context, verified quotations and any uncertainty; null for historical guide-only answers
evidence fields
contextstring requiredsourcesarray of object requiredMaximum items
6sources fields
labelstring requiredMinimum length
1pathstring or null requiredsidestring or null requiredOne of
before,after,nullcommitstring or null requiredquotestring requiredMinimum length
1· Maximum length1200
uncertaintystring or null requiredMinimum length
1
reasonstring requiredSaved reason source evidence could not resolve the question; not a negative answer
unknownsarray of object requiredunknowns fields
idstring requiredstatementstring requiredwhystring requiredWhy the code cannot settle it
evidencestring required
rollout_stepsarray of object requiredrollout_steps fields
titlestring requiredactionstring requiredMarkdown: what to do
whystring requiredkindstring requiredOne of
migration,manual,secret,deploy,monitorwhenstring requiredOne of
before-merge,deploy,after-deploycheckobject or null requiredWhether the change as it stands breaks the step
check fields
statusstring requiredOne of
fails,unverifiednotestring required
claimsarray of ClaimHeader requiredEvery claim, most important first; read one for its body
claims fields
idstring requiredExample
chg_01K6Z3M4N5P6Q7R8S9T0V1W2X3guide_idstring requiredThe guide this claim belongs to
positioninteger requiredIts place in priority order, from 0
titlestring requiredsummarystring required
Example responses
Link to this sectionReady 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": []
}Errors
Link to this section400 · The request is not valid
401 · A valid bearer token is required
403 · The credential's scopes do not allow this
404 · Not found
426 · Upgrade the CLI: run theseus update
429 · Too many requests
Headers
Retry-AfterintegerSeconds to wait before the next request, when known
503 · Theseus is unavailable; retry the same request
Headers
Retry-AfterintegerSeconds to wait before the next request, when known
Error response fields
Content type application/problem+json
typestring (uri) requiredIdentifies the problem type; branch on
codeinsteadtitlestring requiredstatusinteger requireddetailstringcodestring requiredWhy 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_requiredrequest_idstring requiredQuote this when reporting the problem
errorsarray of FieldErrorWith
invalid_request: what is wrong with each fielderrors fields
pathstring requiredWhere in the request, as dotted segments
messagestring required
required_scopestringWith
insufficient_scope: the scope the operation needsnextstringRecovery action, such as theseus update
candidatesarray of CandidateWith
ambiguous: what the request could mean; ask whichcandidates fields
idstring requiredpathstring requiredkindstring requiredtitlestring requiredurlstring (uri) required