Who this token is
GET https://api.rolyx.app/v1/me
The token's name, prefix, scopes and expiry, and the spaces it reaches: your personal space (its id is your user id) and the shared items you're a member of, each with your role and the shared item's top node. A token limited to some spaces lists only those; one with only write scopes lists only spaces it may write.
Example
curl 'https://api.rolyx.app/v1/me' \
-H "Authorization: Bearer $ROLYX_TOKEN" Response
200, JSON.
| Name | Type | Description |
|---|---|---|
name | string | The name it was given in Settings → API. |
prefix | string | Its first 12 characters, as Settings shows them. |
scopes | array of string | ≤ 4 items |
expiresAt | string or null | When it stops working; null = never. format date-time |
createdAt | string | format date-time |
spaces | array of object | |
spaces[].id | string | format uuid |
spaces[].kind | string | personal: everything of yours not shared. shared: a shared item and everything under it. one of personal, shared |
spaces[].role | string | Editors and owners write; viewers only read. one of owner, editor, viewer |
spaces[].rootId | string or null | A shared space's top node; null for the personal space. |
{
"name": "Laptop script",
"prefix": "rlx_3f9a2b1c",
"scopes": [
"nodes:read",
"nodes:write"
],
"expiresAt": null,
"createdAt": "2026-11-25T09:00:00.000Z",
"spaces": [
{
"id": "0b7e9a52-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
"kind": "personal",
"role": "owner",
"rootId": null
},
{
"id": "5d1c0e2f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"kind": "shared",
"role": "editor",
"rootId": "019ab1c2-3d4e-7f00-8a1b-2c3d4e5f6a7b"
}
]
} Errors
Always { "error": { "code", "message" } }; see Errors.
| Status | Code | When |
|---|---|---|
| 400 | bad_request | Bad input: unknown field, wrong type, too long. |
| 401 | unauthorized | Missing, malformed, expired or revoked token. |
| 403 | insufficient_scope | The token lacks the scope this endpoint needs. |
| 404 | not_found | No such resource, or the token cannot see it. |
| 429 | rate_limited | Rate limited; see retry-after. |
| 500 | internal | Internal error. |
| 502 | upstream_error | The database failed. |
| 503 | unavailable | The API is not set up on this server. |