Skip to main content

Revoke User API

The revoke user API allows you to revoke/remove a user's access to any mango. The behaviour of the api is the same as removing a customer from a mango on the customers page in the TagMango dashboard. The api can be called as follows:

curl --location 'https://api-prod-new.tagmango.com/integration/action/revoke-user' \
--header 'x-api-key: <Your API Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"mangoId": "66d0493aa0d85045eefbea89",
"userId": "64a1b2c3d4e5f6a7b8c9d0e1",
"userEmail": "john@example.com"
}'

API parameters

  • mangoId → The id of the mango/service the user is being revoked from, this id can be found by going to Dashboard > Services (or whatever your platform's synonym for mango/service is)
  • userEmail → Email of the user to revoke access for. Either userEmail or userId must be provided.
  • userId → The id of the user to revoke access for. Either userId or userEmail must be provided.