V1 Affiliates
Affiliate auth (v1)
Sends a magic link email to the specified affiliate.
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.
Affiliate ID
Redirect URL included in the magic link
Success
No content
Unauthorized
Forbidden / insufficient scope
Affiliate not found
Internal server error
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
Generates a magic link token for the specified affiliate.
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.
Affiliate ID
Magic link token
Unauthorized
Forbidden / insufficient scope
Affiliate not found
Internal server error
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