For the complete documentation index, see llms.txt. This page is also available as Markdown.

V1 Affiliates

Affiliate auth (v1)

Send affiliate magic link email

post

Sends a magic link email to the specified affiliate.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
affiliate_idstringRequired

Affiliate ID

Body
urlstringOptional

Redirect URL included in the magic link

Responses
200

Success

No content

post/v1/affiliates/{affiliate_id}/auth
POST /v1/affiliates/{affiliate_id}/auth HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 14

{
  "url": "text"
}

No content

Generate affiliate magic link token

post

Generates a magic link token for the specified affiliate.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
affiliate_idstringRequired

Affiliate ID

Responses
200

Magic link token

application/json
magic_link_tokenstringRequired
post/v1/affiliates/{affiliate_id}/login
POST /v1/affiliates/{affiliate_id}/login HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "magic_link_token": "text"
}

Last updated