Get a claim
One claim's body, files and diff, cut to a size limit
GET /api/v1/guides/{guide}/claims/{claim}
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:?}/claims/${CLAIM_ID:?}"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
guide required | path | string | A guide ID (ver_…)Pattern |
claim required | path | string | A chg_ IDPattern |
Responses
Link to this sectionThe claim
Response fields
Content type application/json
idstring requiredExample
chg_01K6Z3M4N5P6Q7R8S9T0V1W2X3guide_idstring requiredThe guide this claim belongs to
positioninteger requiredIts place in priority order, from 0
titlestring requiredsummarystring requiredbodystring requiredMarkdown
filesarray of object requiredfiles fields
pathstring requiredprevious_pathstring or null requiredstatusstring requiredOne of
added,deleted,modified,renamed
diffarray of object requiredThe claim's hunks, most important first. Hunks past the size limit are left out, and
truncatedsays sodiff fields
pathstring requiredtypestring requiredOne of
behavior,cleanup,refactor,move,config,schema,dependency,test,docs,comment,formatting,generated,binarylevelstring requiredHow much the hunk matters to this claim
One of
decides,enables,evidence,incidentalpatchstring or null requiredThe hunk as a git patch; null when it is too large to serve
truncatedboolean requiredWhether the body or diff was cut to fit;
urlshows all of iturlstring (uri) requiredThe claim in the web app
Example responses
Link to this sectionClaim detail
Illustrative response · selected fields
{
"id": "chg_EXAMPLE",
"guide_id": "ver_EXAMPLE",
"position": 0,
"title": "Notifications survive a reconnect",
"summary": "Reconnecting keeps the existing notification preference.",
"body": "The saved notification preference is reused when the connection returns.",
"files": [
{
"path": "src/notifications.ts",
"previous_path": null,
"status": "modified"
}
],
"truncated": false,
"url": "https://example-team.theseus.dev/example/project/pr/42?claim=chg_EXAMPLE"
}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