Social
Generate a referral link
POST
Creates a new referral link with an auto-generated access code for the authenticated user.
ApiKeyAuthheader
X-API-KEY<token>API key with the ix_ prefix. You can generate an API Key by navigating to Settings -> API Key in the web app. Pass it in the X-API-KEY header on every request.
application/json- body
referral_code*stringThe referral code to embed in the link.
Referral link created.
application/json- response
referral_link?stringFull referral URL.
access_code?stringGenerated early-access code.
access_code_name?stringDescriptive name of the access code.
referral_code?stringThe referral code that was provided.
expires_at?stringExpiration timestamp of the access code.
curl -X POST 'https://api.indexify.finance/api/refer.php' \ -H 'Content-Type: application/json' \ -d '{ "referral_code": "string"}'Example Response
{ "referral_link": "string", "access_code": "string", "access_code_name": "string", "referral_code": "string", "expires_at": "string"}