User

Get user context

GET
https://api.tunio.ai/v1/user/context

Returns 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

NameTypeDescription
languagestring
Preferred interface language of the user; null when not set.
planobject
Active plan of the paying account (the account owner's plan for a sub-account); null when there is no plan.
aclobject
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_streamsinteger
Maximum number of stations, including addons.
namestring
Plan name.
streamsarray
Stations owned by the user.
[item]Requiredobject
-
successboolean
Always true.
user_idinteger
ID of the user the token belongs to.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.