Skip to main content
This flow can be executed using a human or a machine user.For machine users:
  • Send a valid Authorization header with of type Bearer TOKEN_VALUE where TOKEN_VALUE is the a JWT returned in the response from Machine User Token flow
This API Will delete user from an organization, if you want to permanently delete user from the app, use Link.
To delete a user from an organization, you need to make a DELETE request to the following endpoint:

Headers

1

x-iam-orgid

Specify the Organization Id here. Example: 281185056586736799
curl --request DELETE \
  --url https://dev-iam.razi.ai/v1/authorization/organizations/users/21892002 \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'X-App-Name: ' \
  --header 'X-Iam-Orgid: '
Upon successful request, the user will be deleted from the organization and the response will be similar to the below:
{
  "message": "User 281435913177801305 removed from organization 281185056586736799"
}