Get your account and workspaces
Who this credential acts as
GET /api/v1/me
Any Theseus credential · no scope required
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}/me"Responses
Link to this sectionThe principal, its workspaces and its scopes
Response fields
Content type application/json
principalPrincipal requiredWho the credential acts as
principal fields
typestring requiredAlways
personidstring requiredgithub_loginstring requiredavatar_urlstring (uri) or null required
workspacesarray of Workspace requiredEvery workspace the credential can reach
workspaces fields
idstring requiredslugstring requirednamestring or null required
scopesarray of string or null requiredWhat the credential may do; null when it has every scope, as sign-ins do
Example responses
Link to this sectionYour account and access
Illustrative response · complete
{
"principal": {
"type": "person",
"id": "usr_EXAMPLE",
"github_login": "example-user",
"avatar_url": null
},
"workspaces": [
{
"id": "wsp_EXAMPLE",
"slug": "example-team",
"name": "Example team"
}
],
"scopes": [
"read",
"runs:write"
]
}Errors
Link to this section401 · A valid bearer token is required
403 · Theseus has not admitted this person yet
426 · Upgrade the CLI: run theseus update
429 · Too many requests
Headers
Retry-AfterintegerSeconds to wait before the next request, when known
500 · Theseus could not complete the request; retrying will not help
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