Delete Identity
Erases the Organization’s identity for a user, deleting its properties and aliases. Events already recorded are kept under their 90-day retention, but no longer show the user when they are read. Pass the canonical user_id; an alias is not accepted.
/v1/identities/{user_id}AuthorizationBearer token (EmitKit API key) · headerrequiredEmitKit API key in the Authorization header as Bearer emitkit_…
X-API-KeyAPI key · headerrequiredEmitKit API key beginning with emitkit_.
user_idstringrequiredThe canonical identifier of the person to erase (not an alias).
The identity and its aliases were erased.
dataobjectrequiredShow propertiesHide properties
aliasesDeletedintegerrequiredidstringrequiredproductEventsDetachedintegerrequiredAlways 0: events are kept, and the user is hidden when they are read.
statusstringrequirederaseduserIdstringrequiredrequestIdstring<uuid>requiredsuccessbooleanrequiredAuthentication credentials are missing or invalid.
codestringrequiredStable: switch on this, not on error or message.
errorstringrequiredmessagestringrequiredrequestIdstring<uuid>requiredsuccessbooleanrequiredThe API key lacks this operation's scope (a read-only key can only read), isn't bound to a Project, or its Project was deleted.
codestringrequiredStable: switch on this, not on error or message.
errorstringrequiredmessagestringrequiredWhat's missing, e.g. the scope the operation needs.
requestIdstring<uuid>requiredsuccessbooleanrequiredNo identity in the Organization has this user_id.
codestringrequiredStable: switch on this, not on error or message.
errorstringrequiredmessagestringrequiredrequestIdstring<uuid>requiredsuccessbooleanrequiredThe authenticated principal exceeded its rate limit.
codestringrequiredStable: switch on this, not on error or message.
errorstringrequiredmessagestringrequiredrequestIdstring<uuid>requiredsuccessbooleanrequiredThe identity could not be erased.
codestringrequiredStable: switch on this, not on error or message.
errorstringrequiredmessagestringrequiredrequestIdstring<uuid>requiredsuccessbooleanrequired