Skip to Content
TrackCrest Docs

Create affiliate

Create an affiliate; sendInvite emails them a link to set a password. Counts against the plan's affiliate limit.

POST
/api/v1/network/affiliates

Requires scope affiliates:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.

Request Body

application/json
  1. body
firstName?string
lastName?string
email?string
company?string|null
manager?string|null
status?string|null
country?string|null
telegram?string|null
sendInvite?boolean
requireIdVerification?boolean
requireInsertionOrder?boolean
notes?string|null

Response Body

Created

application/json
  1. response
data?
Example Request
curl -X POST 'https://trakcrt.com/api/v1/network/affiliates' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "publicId": 0,    "name": "string",    "firstName": "string",    "lastName": "string",    "email": "string",    "company": "string",    "status": "string",    "manager": "string",    "country": "string",    "phone": "string",    "telegram": "string",    "timeZone": "string",    "insertionOrderRequired": true,    "insertionOrderSignedAt": "2019-08-24T14:15:22Z",    "planLocked": true,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}