v1

latestOpenAPI 3.0.32026-08-064799140.5 KB
ConnectTokens

Create a connectToken

Creates a new ConnectToken, which is essential for Corbado Connect. ConnectTokens authorize actions that modify user data.

Consult the Documentation for more details.

post/connectTokens

Request body

type'passkey-append' | 'passkey-delete' | 'passkey-list' | 'passkey-login' required
maxLifetimeInSecondsinteger

Maximum lifetime of the connectToken in seconds.

Example request

{
  "data": {
    "displayName": "Jane Doe",
    "identifier": "jane@doe.com"
  },
  "maxLifetimeInSeconds": 3600
}

Response

ConnectToken has been created.

idstring required

Unique identifier of the connectToken.

tokenType'passkey-append' | 'passkey-delete' | 'passkey-list' | 'passkey-login' required
connectTokenStatus'initial' | 'consumed' required
secretstring

Secret of the connectToken.

expiresinteger required

Unix time of when the connectToken expires (in seconds elapsed since January 1, 1970, 00:00:00 UTC).

Example response

{
  "id": "ctk-940364795071150919",
  "data": {
    "displayName": "Jane Doe",
    "identifier": "jane@doe.com"
  },
  "secret": "ctk1_sxmexzS7RFBaJSA4V4kBFPs45bkxMK",
  "expires": 1752749184
}