Auth API reference

Auth API · End-Users

delete/v1/apps/{app_id}/end-users/{user_id}Auth

Delete an end-user permanently.

Removes the account with its contacts, sessions and tenant memberships. Writes one `auth.account.deleted` audit row (`via: platform`) in the same transaction, mirrors the deletion into the workspace audit log as `auth.end_users.deleted`, and fires `user.deleted` with `via: "platform"`.

Path parameters

app_id*string

Id of the app.

user_id*string

Id of the user.

Response · 204

End-user deleted.

Example

Request

DELETE https://api.auth.productcraft.co/v1/apps/{app_id}/end-users/{user_id}
Authorization: Bearer YOUR_TOKEN