Skip to main content
POST
/
v1
/
applications
/
{applicationId}
/
tokens
Create Identity Token
curl --request POST \
  --url https://api.anchorbrowser.io/v1/applications/{applicationId}/tokens \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '
{
  "callbackUrl": "https://example.com/auth/callback"
}
'
{
  "data": {
    "token": "<string>",
    "expires_at": "2023-11-07T05:31:56Z",
    "token_hash": "<string>"
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

applicationId
string<uuid>
required

The unique identifier of the application

Body

application/json
callbackUrl
string<uri>
required

The HTTPS URL where the user will be redirected after authentication. Must use HTTPS protocol.

Example:

"https://example.com/callback"

Response

Identity token created successfully

data
object