v35

latestOpenAPI 3.1.0raw.githubusercontent.com2025-09-2241237309.7 KB

Create Customer Authentication Token

Create a @Connect authentication token for a customer. This token can be used to embed @Connect in your application via the @openint/connect npm package.

post/v1/customer/{customer_id}/token

Path parameters

customer_idstring required

The unique ID of the customer to create the token for

The unique ID of the customer to create the token for

Request body

validity_in_secondsnumber

How long the publishable token and magic link url will be valid for (in seconds) before it expires. By default it will be valid for 30 days unless otherwise specified.

Response

Successful response

tokenstring required

A short-lived publishable authentication token to use for customer api requests from the frontend. This token by default expires in 30 days unless otherwise specified via the validity_in_seconds parameter.

magic_link_urlstring required

A link that can be shared with customers to use @Connect in any browser. This link will expire in 30 days by default unless otherwise specified via the validity_in_seconds parameter.

api_keystring nullable required

A long-lived customer API key to use for API requests. Not meant to be published to the frontend.