Skip to main content
POST
/
identities
Create an identity link
curl --request POST \
  --url https://api.qonversion.io/v4/identities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "identity_id": "ext-user-123",
  "user_id": "QON_abc123def456"
}
'
{
  "object": "identity",
  "id": "ext-user-123",
  "url": "/v4/identities/ext-user-123",
  "user_id": "QON_abc123def456"
}

Authorizations

Authorization
string
header
required

Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.

Headers

Idempotency-Key
string

Idempotency key for safe retries. Same key returns the original response.

Body

application/json
identity_id
string
required

External identity ID to assign.

Maximum string length: 256
Pattern: ^[a-zA-Z0-9._-]+$
Example:

"ext-user-123"

user_id
string | null

Qonversion user ID. If null, a new user is created.

Maximum string length: 256
Pattern: ^[a-zA-Z0-9._-]+$
Example:

"QON_abc123def456"

Response

Identity created successfully.

object
enum<string>
required
Available options:
identity
id
string
required

External identity identifier.

Example:

"ext-user-123"

url
string
required

Canonical API path.

Example:

"/v4/identities/ext-user-123"

user_id
string
required

Qonversion user identifier linked to this identity.

Example:

"QON_abc123def456"