Request User Delete

Start the flow to delete a user account.

Prerequisites

  • Before calling this API, ensure you have created and activated a Tenant whose appId matches the App-Id header of this request. The correct appId value can be retrieved from the TenantResource returned by the Dashboard API.
  • You must also have created and activated a REQUEST_USER_DELETE type Route whose appRouteId matches the App-Route-Id header, and whose HTTP method and path match those of this request. The correct appRouteId value can be retrieved from the RouteResource returned by the Dashboard API.

Base URL

https://your-gateway-host

Required Headers

App-Id: app-xxxxxxxx
App-Key: key-xxxxxxxx
App-Route-Id: route-xxxxxxxx

Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json

Method and Path

Use the HTTP method and path specified in the activeConfig field of the Route.

Request Body

{
  "currentPassword" : "currentPassword"
}

Response 200 OK

{
    "mfaId": "mfaId",
    "mfaToken": "123456"
}
📘

The returned mfaId and mfaToken must be used with the Delete User MFA API to complete the delete user flow.
You can use the token immediately or send it to the user, for example by email or SMS, so they can complete the operation themselves.

Request Flow


Did this page help you?