Skip to main content
err:unkey:data:identity_already_exists
An identity with the same externalId already exists in your workspace, so identities.createIdentity didn’t create one. You get HTTP 409.
Example response

Likely causes

  • You already created an identity for this user or tenant. externalId is unique per workspace.

How to fix

  1. Use the existing identity: fetch it with identities.getIdentity, or change its meta or rate limits with identities.updateIdentity.
  2. To attach keys to it, pass its externalId on keys.createKey.
In provisioning code, treat a 409 as success.
Last modified on October 6, 2026