Remove an identity
/api/v1/identities/{id}Removes an identity from the current Environment without hard-deleting the Identity row (the same person may belong to other Environments in the Account). The Environment membership is flipped to deactivated so it stays reversible, every role assignment at nodes in this Environment is dropped, and any still-pending invite for that email into this Environment is revoked. Assignments and memberships in other Environments are untouched. Returns 204 No Content; returns 404 when the identity has no membership in this Environment.
Authentication
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required Responses
Identity removed (assignments cascade deleted)
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X DELETE "https://auth.canopy-io.com/api/v1/identities/value" \ -H "X-API-Key: $CANOPY_API_KEY"
HTTP/1.1 204 Identity removed (assignments cascade deleted) (empty body)
Tell us how we can improve this guide.