REST API reference
Account
Check which user, team and access a token has.
Endpoints
Every request needs a bearer token: an API key or an OAuth access token. See authentication and scopes.
Get the token's user and team
GET
/api/v1/meThe token's user, team and access (read or write).
- Scope
Any scope- Unscoped key
- Read-only or read-write
Request
curl https://zono.support/api/v1/me \
-H "Authorization: Bearer $ZONO_TOKEN" \
-H "Accept: application/json"Response200 OK
{
"object": "token",
"user": {
"id": "01j9x0a1b2c3d4e5f6g7h8j9k0",
"name": "Billing",
"email": "[email protected]",
"role": "admin"
},
"team": {
"id": "01j9x0a1b2c3d4e5f6g7h8j9k0",
"name": "Billing"
},
"token": {
"id": 12,
"name": "Billing",
"access": "read",
"scopes": [
"tickets:read"
],
"expires_at": "2026-01-15T10:24:07Z",
"allowed_ips": [
"allowed_ips"
]
}
}