Create affiliates directly from your own product, with no email invite or sign-up, and get a ready-to-share tracking link back.
5 min read
Prefer the email-invite flow (the affiliate gets their own LinkJolt login and connects their own Stripe for payouts)? Use Invite affiliates instead.
curl https://linkjolt.io/api/v1/affiliates \
-X POST \
-H "Authorization: Bearer lj_pk_your_key" \
-H "Content-Type: application/json" \
-d '{
"email": "jane@example.com",
"name": "Jane Smith",
"campaignId": "camp_abc"
}'You get the affiliate plus a trackingLink you can show or send right away, no dashboard login required:
{
"data": {
"id": "aff_abc",
"name": "Jane Smith",
"email": "jane@example.com",
"status": "approved",
"campaignId": "camp_abc",
"campaignName": "Summer Launch",
"trackingLink": "https://linkjolt.io/redirect?tc=SUMMER24&aff=aff_abc",
"createdVia": "api",
"joinedAt": "2026-06-22T12:00:00Z"
}
}Affiliate email is globally unique. Creating an affiliate with an email that already exists returns 409 duplicate with the existing affiliateId in error.details, so you can reuse it instead of creating a second record. Calls are safe to retry.
The tracking link is also returned by GET /api/v1/affiliates and GET /api/v1/affiliates/:id, so you can fetch it again any time without storing it.
Full reference: POST /api/v1/affiliates