Get the user's referral summary
Get the user's Refer & Earn referral link, its clicks, signups and sales, and their pending, cleared and paid earnings. Use it when the user asks for their referral link or how much they have earned.
Get the user's Refer & Earn referral link, its clicks, signups and sales, and their pending, cleared and paid earnings. Use it when the user asks for their referral link or how much they have earned.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
In: header
Query Parameters
true to also list the people the user referred (slower).
Value in
- "true"
- "false"
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/me/referral"{ "enabled": true, "reason": "guest", "link": { "shortLink": "string", "clicks": 0, "leads": 0, "sales": 0, "property1": null, "property2": null }, "earnings": { "pendingCents": 0, "clearedCents": 0, "paidCents": 0, "readyToWithdraw": true, "currency": "string", "property1": null, "property2": null }, "portalUrl": "string", "referrals": [ { "property1": null, "property2": null } ], "property1": null, "property2": null}Ask the user for more permissions POST
Get a single-use link (15 minutes) where the user approves extra permission tiers for this same connection; once approved, retry the refused call. Use it when a call is refused with SCOPE_MISSING.
Add an email address POST
Add an email address to your account and send it a verification link. Use it when the user wants another address on their account; once verified it can become primary and open teams to its domain.