API Docs
Users
Delete a User
11min
This endpoint allows the removal of a specific user from the system by sending a POST request with the user's ID and an authorization token.
- accept: application/json Specifies that the request expects a JSON response.
- authorization: Bearer <JWT Token> A JSON Web Token (JWT) that authenticates the request. Replace <JWT Token> with a valid token.
- content-type: application/json Specifies that the request body is in JSON format.
The request body should be in JSON format and contain the following fields:
- id: string The ID of the user to be removed.
- token: string A valid authentication token (JWT) for the request.
- POST: Sends a request to remove the specified user from the system.
The API will return a JSON response indicating the success or failure of the operation.
This API requires a valid JWT token for authentication. Ensure that the token is included in the authorization header as Bearer <JWT Token>.
- Ensure that the id in the request body matches the user you wish to remove.
- The request must include a valid JWT token for authentication, without which the request will be rejected with a 401 Unauthorized error.
Updated 09 Oct 2024
Did this page help you?