Identity

Create Link Token

Changed on

Mints a short-lived link token for an app to present with its publishable key (see Present Link Token). Use it when you want the app to finish the move instead of calling Reconcile Identities yourself.

Authenticated with your secret key (zs_sk_*). The token names one from and one into, expires after 10 minutes, and can be used once. Minting does not check the ids: the checks happen when the token is presented. You can also sign tokens yourself with no network call, see the Guest to Account guide for the exact format.

post/identities/link-token/

Request

  • Base URL
    https://api.zerosettle.io/v1
  • URL
    https://api.zerosettle.io/v1/identities/link-token/
  • Auth
    API key in header X-ZeroSettle-Key

Request body

fromstring required

The id to merge away, usually the guest id. Ids are matched without regard to letter case.

intostring required

The id that keeps the purchases, usually the account id.

Response

The token.

tokenstring

The signed link token. Pass it to the SDK's reconcile(linkToken:).

expires_atstring date-time

When the token expires.

Changes