Get a review action
Read the immutable decision action referenced by a review event
GET /api/v1/review-actions/{action}
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}/review-actions/${ACTION_ID:?}"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
action required | path | string | Pattern |
Responses
Link to this sectionThe historical action, not a claim of current approval or GitHub delivery
Response fields
Content type application/json
idstring requiredreview_idstring requiredguide_idstring requiredhead_shastring requireddecisionstring requiredOne of
none,approved,needs_changes,commentedsequenceinteger requiredbodystring requiredauthorobject requiredauthor fields
user_idstring requireddisplay_namestring required
Example responses
Link to this sectionHistorical review decision
Illustrative response · selected fields
{
"id": "rda_EXAMPLE",
"review_id": "rev_EXAMPLE",
"guide_id": "ver_EXAMPLE",
"head_sha": "0123456789abcdef0123456789abcdef01234567",
"decision": "approved",
"sequence": 1,
"body": "The reconnect behavior looks correct."
}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