Scopes

A user token carries the scopes the user agreed to. Each endpoint under /oauth checks its own scope, and a token without it is refused — request only what you actually use, because every extra scope is one more thing the user has to accept.

Available scopes

Scope Grants access to
user.common GET /oauth/user/common — name, contacts, avatar, wallets, default profile
user.channels GET /oauth/user/channels — the user's channels with stats
user.balance GET /oauth/user/balance — balance of a chosen wallet
channel.token GET /oauth/user/channel-tokens — YouTube tokens of owned channels
employee.invitations GET and POST /oauth/employee-invitations
company.positions GET /oauth/company/positions

Request them space-separated when starting the flow:

GET $BASE_URL/oauth/authorize
    ?client_id=<your client id>
    &redirect_uri=<your registered redirect uri>
    &response_type=code
    &scope=user.common%20user.balance

GET /oauth/user is the exception: it returns the authorized user's profile and requires no specific scope, only a valid user token.

Two exceptions to "one scope, one endpoint"

POST /oauth/employee-invitations needs more than a scope. Besides employee.invitations, the client must be bound to a company account. A client on a personal account is refused with 403 and code 2000, even with the scope granted.

GET /oauth/user/channel-tokens may come back as an object rather than an array. Channels without a stored token are skipped, and the remaining entries keep their original positions. If the gap is in the middle you get {"0": {...}, "2": {...}}; if nothing is skipped, or only trailing entries are, you get a plain array. Parse it as a map and iterate over values — do not assume either shape.

Revoking

The user can revoke access from the Garna dashboard at any time. After that, calls with the old token answer 401 — treat it as "start the authorization flow again", not as a transient error worth retrying.

Where to go next