Skip to main content
POST
/
v1
/
affiliates
Create an affiliate
curl --request POST \
  --url https://go.affixo.dev/v1/affiliates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "promoter@example.com",
  "name": "Jane Promoter",
  "ref_code": "jane"
}
'
{
  "object": "affiliate",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "ref_code": "jane",
    "email": "jsmith@example.com",
    "name": "<string>",
    "status": "pending",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Workspace API key, e.g. sa_live_…. Scopes: read / write / track / *.

Body

application/json
email
string<email>
Example:

"promoter@example.com"

name
string
Example:

"Jane Promoter"

ref_code
string

Optional referral code; auto-generated when omitted.

Example:

"jane"

Response

Affiliate created

object
string
Example:

"affiliate"

data
object