Documentation menu
Token
The identity of the token and its workspace.
Current token and workspace#
GET/me
No scope required
Returns the token used (name, prefix, scopes, expiration), the workspace it is bound to, its plan and the request limit per minute. No scope is required: any valid token can call this route, which makes it the reference connection test.
Responses
200 OK
| Field | Type | Description |
|---|---|---|
| datarequired | object |
Nested fields and variants
| Field | Type | Description |
|---|---|---|
| data.tokenrequired | object | |
| data.token.idrequired | string (ulid) | |
| data.token.namerequired | string | |
| data.token.prefixrequired | string | Beginning of the token, never its value. |
| data.token.scopesrequired | array | |
| data.token.scopes[]required | string | Permission of a token. A Values: |
| data.token.expires_atrequired | string (date-time) | null |
|
| data.workspacerequired | object | |
| data.workspace.idrequired | string (ulid) | |
| data.workspace.namerequired | string | |
| data.workspace.planrequired | string | Key of the workspace's plan. |
| data.rate_limitrequired | object | |
| data.rate_limit.per_minuterequired | integer | null | Requests per minute per token; |
Errors All codes
401Token missing, unknown, expired or revoked (
code: invalid_token). Also returned when the token's creator has left the workspace. Rejections are counted per IP (30 per minute): beyond that, 429.402The workspace's plan does not include API access (
feature: api.access), or the requested plan entitlement is missing or its quota is reached:plan_required,quota_reachedorplan_restricted(resource read-only after a downgrade).429Limit reached (
code: rate_limited): per token, for all of the workspace's tokens combined, or a route's own limit (QR code export,POST /webhooks,PATCH /webhooks/{webhook}withurl,POST /webhooks/{webhook}/test,…/resend). WaitRetry-Afterseconds. TheX-RateLimit-*headers are present;X-RateLimit-Resetfollows the limiter whoseX-RateLimit-Remainingis the lowest.
curl -sS "https://api.hyllo.fr/api/public/v1/me" \
-H "Authorization: Bearer $HYLLO_API_TOKEN" \
-H "Accept: application/json"Response example
{
"data": {
"token": {
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "string",
"prefix": "hyl_a1b2c3d4",
"scopes": [
"short_links:read"
],
"expires_at": "2026-01-01T00:00:00Z"
},
"workspace": {
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "string",
"plan": "pro"
},
"rate_limit": {
"per_minute": 1
}
}
}Schemas
Me
| Field | Type | Description |
|---|---|---|
| tokenrequired | object | |
| workspacerequired | object | |
| rate_limitrequired | object |
Nested fields and variants
| Field | Type | Description |
|---|---|---|
| token.idrequired | string (ulid) | |
| token.namerequired | string | |
| token.prefixrequired | string | Beginning of the token, never its value. |
| token.scopesrequired | array | |
| token.scopes[]required | string | Permission of a token. A Values: |
| token.expires_atrequired | string (date-time) | null |
|
| workspace.idrequired | string (ulid) | |
| workspace.namerequired | string | |
| workspace.planrequired | string | Key of the workspace's plan. |
| rate_limit.per_minuterequired | integer | null | Requests per minute per token; |
