Reading user data
A user token lets your application read what the user agreed to share: profile, channels, wallet
balance, and — if the user is a company — its positions and employee invitations. Every endpoint lives
under /oauth, and each checks its own scope; see Scopes for the list and
Authentication for how the token is issued.
Response envelopes
There is no single envelope on these endpoints, and the difference is not cosmetic — it decides how you parse the body. Laid out as in the partner table in Overview:
| Body | Endpoints |
|---|---|
| the object itself, no envelope | GET /oauth/user, GET /oauth/user/common, GET /oauth/user/balance |
| a plain array, no envelope | GET /oauth/user/channels |
| an object keyed by position | GET /oauth/user/channel-tokens — see below |
data with an array |
GET/POST /oauth/employee-invitations, GET /oauth/company/positions |
data with an object |
GET /oauth/clients/{clientId} |
Profile: two endpoints, two different field sets
GET /oauth/user and GET /oauth/user/common are not the same call with different names.
GET /oauth/user needs no specific scope — any valid user token opens it, and it answers with the
account. GET /oauth/user/common requires the user.common scope and answers with the
person. The two field sets overlap but neither contains the other:
| Field | /oauth/user |
/oauth/user/common |
What it is |
|---|---|---|---|
id |
✓ | — | Garna user id |
name |
— | ✓ | Full name as one string |
first_name · last_name |
✓ | — | Name in two parts |
email |
✓ | ✓ | Login address |
type |
✓ | — | Account type, a string — see below |
lang |
✓ | ✓ | Interface language |
phone |
✓ | — | Contact phone |
avatar |
— | ✓ | Avatar URL |
wallet |
✓ | ✓ | Number of the Cyprus USD wallet, null when it is not available to the user |
wallets |
✓ | ✓ | Wallets available to the user, with region, currency, number |
kyc_status |
✓ | — | Verification status 1–7 — see below |
is_confirmed |
✓ | ✓ | Email confirmed |
is_company |
✓ | — | Company account |
created_at |
✓ | — | Registration date, not ISO 8601 — see below |
profile |
— | ✓ | Full profile record, null when there is none |
birthday |
— | ✓ | Date of birth |
sex |
— | ✓ | A string — see below |
country_id · country |
✓ | ✓ | Country id and the country object |
channels |
✓ | — | YouTube ids of connected channels |
mcn_id |
✓ | ✓ | Network the account belongs to |
contractor_specialty |
conditional | conditional | Only with a contractor agreement |
contractor_specialty is the only conditional key on either endpoint — everything else is always
present, null when empty. It comes as the name of the value (BACKEND, DESIGN, …), not a number.
profile in /oauth/user/common is the full profile record, not a trimmed version of it — 16 keys:
| Keys | What they hold |
|---|---|
id · user_id |
Identifiers of the profile and its owner |
first_name · middle_name · last_name · name |
Legal name in parts and assembled |
company_name |
Legal entity, when the user acts as one |
lang |
Language this profile is filled in |
region · city · postcode · address |
Registered address |
real_region · real_city · real_postcode · real_address |
Actual address, when it differs |
Four fields of the endpoints themselves need care:
typeis a string, not a number:default_user,freelancerormain_company. Everything outside the payroll model comes back asdefault_user.sexis a string too —male,femaleorother, ornullwhen it was never filled in.created_athere is2026-08-01 12:00:00, not ISO 8601 — the one field in this API formatted that way.kyc_statusis a number from1to7:1new,2pending,3approved,4rejected,5permanently rejected,6invalid document,7manual review. Anything other than3means the user cannot be paid — but3alone does not promise the opposite: it covers identity only, and address or document checks may still be outstanding.
The region and currency of an entry in wallets are the same pair you pass when paying out.
wallets lists only the wallets the user can use. An account can hold wallets in regions that are
switched off for it — those are left out, and wallet is null when the Cyprus USD one is among them.
Pay to a number from wallets; a number you stored earlier may no longer be listed.
Channels: the two lists differ
channels inside GET /oauth/user is a list of YouTube ids of connected channels — those whose
connect request is linked or approved. GET /oauth/user/channels (scope user.channels) lists all
channels attached to the user, newest first, whatever the state of the connect request, with title,
image, publication date and public counters:
curl "$BASE_URL/oauth/user/channels" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
[
{
"youtube_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
"title": "Channel title",
"image": "https://yt3.example/photo.jpg",
"published_at": "2019-04-17",
"views_count": 1200345,
"subscribers_count": 45300,
"is_google_user_owner": true
}
]
So the two lists can legitimately disagree: a channel in /oauth/user/channels may be missing from
channels because its connect request is still waiting. is_google_user_owner is true only for
channels where this user is the main owner.
Balance
curl "$BASE_URL/oauth/user/balance?wallet=4200123456" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
{
"user_id": 84213,
"balance": "1500.00",
"real_balance": "1200.00",
"credit_balance": "300.00",
"wallet": { "id": 9912, "region": "cyprus", "currency": "USD", "number": "4200123456" }
}
walletis optional; without it you get the user's Cyprus USD wallet. When that wallet is not available to the user,walletbecomes required and omitting it fails validation with422.- A wallet number that does not belong to the authorized user fails validation with
422— you cannot read someone else's balance by guessing a number. A number of the user's own wallet that is not available to them fails the same way, so only numbers fromwalletsare accepted. real_balanceis the payable part —balanceincludes credit,real_balancedoes not. Payout limits are computed fromreal_balance.
Channel tokens
GET /oauth/user/channel-tokens (scope channel.token) returns YouTube tokens for channels the user
owns — where they are the main owner. Channels without a stored token are skipped, and the survivors
keep their original positions, so the body is a JSON object keyed by position when the gap is in the
middle:
{
"0": { "youtube_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw", "token": "ya29…", "refresh_token": "1//0e…" },
"2": { "youtube_id": "UCBR8-60-B28hp2BmDPdntcQ", "token": "ya29…", "refresh_token": null }
}
If nothing is skipped, or only trailing entries are, the same endpoint answers with a plain array. Parse it as a map and iterate over values — do not index it as a list.
Company: positions and employee invitations
These two are for company accounts and are the only user endpoints that write.
curl "$BASE_URL/oauth/company/positions" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
Positions come newest first, wrapped in data, and their id is what you pass as position_id.
curl -X POST "$BASE_URL/oauth/employee-invitations" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"position_id": 17,
"emails": ["first@example.com", "second@example.com"]
}'
- Inviting needs more than the scope. Besides
employee.invitations, the OAuth client must be bound to a company account; a client on a personal account is refused with403and code2000even with the scope granted. Reading invitations has no such requirement. - Addresses that are already invited, already employed or otherwise ineligible fail validation with
422, and the whole request fails — invitations are not created partially. GETreturns the company's invitations, newest first.
Rendering your own consent screen
GET /oauth/clients/{clientId} is public — no token — and answers with exactly the four keys a connect
screen needs, wrapped in data:
| Field | What it is |
|---|---|
name |
Display name of the application |
avatar |
Logo URL |
agreement_link |
Link to the application's terms |
privacy_link |
Link to its privacy policy |
Nothing else about the client is exposed here. The oauth_client object you may see inside a payout
response is a different, wider shape — that one is your own client, returned under your token.
Where to go next
- Scopes — which scope unlocks which endpoint, and what to ask the user for
- Endpoints: User data — exact schemas, field by field, with snippets
- Authentication — the authorization code flow that issues these tokens