Read your own notes for a repository and branch
Read your own notes for a repository and branch
GET /api/v1/notes
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}/notes"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many items to return, from 1 to 100 Default |
cursor | query | string | A previous page's next_cursor, with the same filtersMinimum length |
repository required | query | string | Minimum length |
workspace | query | string | Workspace ID or slug, when this repository is available in several workspaces Minimum length |
branch | query | string | Omit for notes made on a detached HEAD Minimum length |
Responses
Link to this sectionNotes sent by this person, oldest first
Response fields
Content type application/json
dataarray of SessionNote requireddata fields
note_idstring (uuid) requiredbranchstring or null requiredMinimum length
1· Maximum length1024head_shastring or null requiredPattern
^[a-f0-9]{40}$kindstring requiredtextstring requiredMaximum length
500· Pattern^[^\r\n]*\S[^\r\n]*$harnessstring or null requiredPattern
^[a-z0-9-]{1,64}$session_idstring or null requiredMinimum length
1· Maximum length1024noted_atinteger requiredMinimum
0· Maximum9007199254740991received_atinteger requiredMinimum
0
next_cursorstring or null requiredhas_moreboolean required
Example responses
Link to this sectionYour notes on this branch
Illustrative response · complete
{
"data": [
{
"note_id": "00000000-0000-4000-8000-000000000031",
"branch": "feature/reconnect",
"head_sha": "0123456789abcdef0123456789abcdef01234567",
"kind": "decision",
"text": "Kept the retry in the client because the server cannot distinguish a timeout.",
"harness": "codex",
"session_id": null,
"noted_at": 1791460800000,
"received_at": 1791460800100
}
],
"next_cursor": null,
"has_more": false
}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
409 · The request matches more than one resource
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