POST
/
connectTokens
Create a connectToken
curl --request POST \
  --url https://backendapi.corbado.io/v2/connectTokens \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "passkey-append",
  "data": {
    "displayName": "Jane Doe",
    "identifier": "jane@doe.com"
  },
  "maxLifetimeInSeconds": 3600
}'
{
  "id": "ctk-940364795071150919",
  "tokenType": "passkey-append",
  "data": {
    "displayName": "Jane Doe",
    "identifier": "jane@doe.com"
  },
  "connectTokenStatus": "initial",
  "secret": "ctk1_sxmexzS7RFBaJSA4V4kBFPs45bkxMK",
  "expires": 1752749184
}

Authorizations

Authorization
string
header
required

Basic authentication is used to authenticate requests to the Backend API. The username is the project ID and the password is the API secret.

The project ID and API secret can be found in the Developer Panel.

Body

application/json

Response

200
application/json

ConnectToken has been created.

The response is of type object.