Skip to main content
POST
Generate a secure, single-use JWT token that allows an affiliate to be automatically signed into the hosted Affonso portal. This enables a seamless SSO-style experience where affiliates already authenticated in your application can access the portal without a second login step.

Use Case

Your users are already authenticated in your app. When they click a button to view their affiliate dashboard, you generate a portal token and redirect them to the returned portalUrl. The affiliate is automatically signed in — no email input or login step required.

Path Parameters

string
required
The affiliate’s unique identifier.

Response

boolean
Always true for successful responses.
object
The portal login token data.

Notes

  • No request body required — the team’s program is resolved automatically from your API key.
  • The token expires after 5 minutes and can only be used once. Generate a new token for each redirect.
  • The affiliate must be in ACTIVE status. Suspended, banned, or inactive affiliates cannot receive portal tokens.
  • Requires the write:affiliates permission on your API key.
  • The portalUrl automatically uses your custom domain if configured and verified, otherwise falls back to {subdomain}.affonso.io.