Get review state
Which Theseus review decisions apply to the pull request’s current head
GET /api/v1/changesets/{changeset}/review-state
Advisory and bounded: complete is false when the changeset has more guides or reviews than one read covers, and then counts are null. Theseus approval never establishes GitHub approval or mergeability.
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}/changesets/${CHANGESET_ID:?}/review-state"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
changeset required | path | string | A set_ IDPattern |
Responses
Link to this sectionEvery review on the changeset’s ready guides, with its applicability
Response fields
Content type application/json
advisoryboolean requiredAlways
truecompleteboolean requiredstatestring requiredOne of
unknown,none,approved,needs_changescurrent_guide_idstring or null requiredcurrent_head_shastring or null requiredhead_observed_atstring (date-time) or null requiredhead_freshnessstring requiredfreshwhen the pull request head observation is complete; otherwise whether a decision applies is unknownOne of
fresh,pending,unknownapprovalsinteger or null requiredchanges_requestsinteger or null requiredreviewsarray of object requiredreviews fields
review_idstring requiredauthorobject requiredauthor fields
user_idstring requireddisplay_namestring required
reviewed_guide_idstring requireddecisionstring requiredOne of
none,approved,needs_changesdecision_action_idstring or null requireddecided_atstring (date-time) or null requiredreviewed_head_shastring or null requiredreviewed_base_shastring or null requiredcurrent_base_shastring or null requiredapplies_to_current_headboolean or null requiredapplicability_reasonstring requiredOne of
applies,no_decision,different_comparison,different_head,unknowneffective_for_current_stateboolean or null requiredFalse when this reviewer made a later decision on the same comparison, which replaces this one; null when unknown
Example responses
Link to this sectionReview state
Illustrative response · complete
{
"advisory": true,
"complete": true,
"state": "needs_changes",
"current_guide_id": "ver_EXAMPLE",
"current_head_sha": "0123456789abcdef0123456789abcdef01234567",
"head_observed_at": "2026-10-08T12:11:00Z",
"head_freshness": "fresh",
"approvals": 0,
"changes_requests": 1,
"reviews": [
{
"review_id": "rev_EXAMPLE",
"author": {
"user_id": "usr_EXAMPLE",
"display_name": "Example reviewer"
},
"reviewed_guide_id": "ver_EXAMPLE",
"decision": "needs_changes",
"decision_action_id": "rda_EXAMPLE",
"decided_at": "2026-10-08T12:10:00Z",
"reviewed_head_sha": "0123456789abcdef0123456789abcdef01234567",
"reviewed_base_sha": "fedcba9876543210fedcba9876543210fedcba98",
"current_base_sha": "fedcba9876543210fedcba9876543210fedcba98",
"applies_to_current_head": true,
"applicability_reason": "applies",
"effective_for_current_state": true
}
]
}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