Create an advocate for your referral program
cURL
curl --request POST \ --url https://api.getreditus.com/api/v1/advocates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "uid": "<string>", "email": "<string>", "first_name": 123, "last_name": 123, "company": 123, "company_id": 123 }'
{ "data": { "id": "<string>", "type": "<string>", "attributes": { "id": "<string>", "uid": "<string>", "email": "<string>", "first_name": "<string>", "last_name": "<string>", "slug": "<string>", "referral_link": "<string>", "company_id": "<string>", "company": "<string>", "created_at": 123 } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Accepted
The response is of type object.
object