---
title: "Create a portal sign-in link (SSO)"
method: POST
path: "/affiliates/{id}/login-link"
tags: ["Affiliates"]
---

# Create a portal sign-in link (SSO)

`POST /affiliates/{id}/login-link`

## Request

- Base URL: `https://api.supersendtx.com`
- URL: `https://api.supersendtx.com/affiliates/{id}/login-link`
- Auth: HTTP bearer

A one-time link that signs the partner in to your partner portal and expires after one minute. Mint it when a signed-in user clicks "Referral dashboard" in your app and redirect them to `url`. Never email or store it.

## Response `201`

Sign-in link

- AffiliateLoginLink
  - `object` 'affiliate_login_link', required
  - `url` string, uri, required
  - `expires_at` string, date-time, required

## Other responses

- `400`: Validation error (`details.fields` names each bad field)
- `401`: Missing or invalid API key
- `403`: The API key is not full access, or the action is not allowed
- `404`: Not found in this account

---

[API](https://skmtc.dev/ranla/apis/supersend-tx-api.md) · [All operations](https://skmtc.dev/ranla/apis/supersend-tx-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ranla/apis/supersend-tx-api/revisions/e3e782652f50?raw)
