Skip to main content
POST
Create tokens only from your backend with X-Api-Key or an OAuth access token with connections:write. Your client must be active. X-Subtotal-Idempotency-Key is optional. Include it to return the same token when retrying an identical request. Without it, each successful request creates a new token. Returns link_token, not a URL or a separate token ID. See Customer Link tokens for URL construction, reuse, and retry behavior.

Headers

X-Subtotal-Idempotency-Key
string | null
authorization
string | null
x-api-key
string | null

Body

application/json
customer_id
string
required

A unique identifier used to map connections to customer records in external systems.

Required string length: 1 - 64
email
string
required

The customer's email address

Maximum string length: 254
mobile
string | null

The customer's mobile phone number

Maximum string length: 16
tags
Tags · object | null

Client-defined attribution tags recorded when the connection is created, for grouping connection metrics — e.g. {"campaign": "summer_sweeps", "program": "loyalty"}. Names and values are opaque to Subtotal and are never interpreted. At most 10 tags; names up to 64 characters, values up to 256. Intended for campaign and source metadata — do not put consumer PII in tags.

expires_in_days
integer
default:30

Number of whole days before the link token expires.

Required range: 1 <= x <= 365

Response

Successful Response

customer_id
string
required
status
enum<string>
required
Available options:
active,
expired,
revoked
created_at
string<date-time>
required
expires_at
string<date-time>
required
revoked_at
string<date-time> | null
required