User
Get user context
GET
https://api.tunio.ai/ v1/ user/ contextReturns the user the token belongs to, the active plan with its feature flags and limits, and the user's stations. plan.acl.restreaming and plan.acl.restreams_limit are what the account effectively has, a restreams addon included.
Responses
| Name | Type | Description |
|---|---|---|
| language | string | Preferred interface language of the user; null when not set. |
| plan | object | Active plan of the paying account (the account owner's plan for a sub-account); null when there is no plan. |
| acl | object | Feature flags and limits of the plan. A null *_limit field means unlimited. restreaming and restreams_limit are the effective values with addons applied: restreams_limit is the number of restreams the account may have (0 when restreaming is off). |
| max_streams | integer | Maximum number of stations, including addons. |
| name | string | Plan name. |
| streams | array | Stations owned by the user. |
| [item]Required | object | - |
| success | boolean | Always true. |
| user_id | integer | ID of the user the token belongs to. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |