Syndai Docs

Get referral

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/coding/customers/{customer_id}/referral

The workspace's invite link and what it earned: sign-ups, credits paid and this month's count against the limit. Owners and admins.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
earned_usd*number
invite_url*string
ref_code*string
referred_paying*integer
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/referral'
Example Response
{  "earned_usd": 0,  "invite_url": "string",  "ref_code": "string",  "referred_paying": 0}
Was this page helpful?