Affiliate Login
/a/affiliates/loginAuthenticate affiliate using email and password and return a redirect URL with short-lived token. To embed the portal in your own app, use Affiliate SSO Link instead: it needs no password and its link works once. Affiliates made app-only (password_login=false on Affiliate SSO Link) are refused with 403 password_login_disabled. The redirect URL works once and expires after 1 hour; a user with two-factor authentication is asked for their code before the portal opens. After 5 wrong passwords for the same email within 15 minutes, further attempts return 429 too_many_attempts with Retry-After.
Authentication
Domain ID — your network's tenant ID (header: X-Domain-Id)
API Key (header: X-Api-Key)
Secret Key (header: X-Api-Secret)
Request Body *
Affiliate login credentials
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | |
password | string | Yes |
Responses
| Status | Description |
|---|---|
| 200 | Login successful |
| 401 | Invalid credentials |
| 403 | Account not active (account_not_active), or password sign-in disabled for this app-only affiliate (password_login_disabled) |
| 422 | Validation error |
| 429 | Too many failed attempts for this email |