Create an identity link
Links a Qonversion anonymous user to an external identity ID.
If user_id is null, a new user is created and linked.
This is the mechanism for matching Qonversion anonymous users with your own user IDs.
Authorizations
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 for safe retries. Same key returns the original response.
Body
External identity ID to assign. Identities are append-only — posting the same identity_id twice returns 409.
255^[a-zA-Z0-9._-]+$"ext-user-123"
Qonversion user ID to bind. If null, a new anonymous user is created and linked.
255^[a-zA-Z0-9._-]+$"QON_3af4c5b8a4d24f21b72e9d0c8aef9d4e"
Response
Identity created successfully.
identity External identity identifier.
"ext-user-123"
Canonical API path.
"/v4/identities/ext-user-123"
Qonversion user identifier linked to this identity.
"QON_3af4c5b8a4d24f21b72e9d0c8aef9d4e"