err:unkey:data:identity_already_existsexternalId 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.
externalIdis unique per workspace.
How to fix
- Use the existing identity: fetch it with
identities.getIdentity, or change itsmetaor rate limits withidentities.updateIdentity. - To attach keys to it, pass its
externalIdonkeys.createKey.
Related errors
err:unkey:data:identity_not_found: the identity doesn’t exist.