Skip to content

Account

Who a credential acts as.

GET/v1/me

getMeRole: viewer or higher

Who this request acts as: the token, its organization and role, and for a personal token the person it belongs to. Call it first to check a token works and to find the organization slug the other operations take.

Example request

Terminal window
curl https://api.spanslice.com/v1/me \
-H "Authorization: Bearer $SPANSLICE_TOKEN"

Response 200

GetMeResponse

Example response
{
"token": {
"name": "Rules agent",
"kind": "personal",
"role": "member",
"organization": "snugghome",
"expires_at": "2027-01-06T14:03:12.000Z",
"created_at": "2026-10-08T14:03:12.000Z"
},
"user": {
"name": "Ada",
"email": "ada@snugghome.com"
}
}

Errors

StatusCodeWhen
401unauthorizedThe access token is missing, unknown, expired or revoked.
404not_foundIt doesn't exist, or this token can't reach it.