Customers and access
Revoke access
POST
/ v1 / access / revoke Takes away access that was granted: by POST /v1/access/grant, an import, Zapier or the Tentary app.
- Access from a purchase stays. To end it, use
POST /v1/orders/{order_id}/refund, orPOST /v1/orders/{order_id}/cancel-subscriptionwithaccessnow. Both need confirmation. - The customer and their learning progress stay. A later
POST /v1/access/grantgives the access back.
Changes at once MCP tool revoke_access
Authorization
-
Authorizationstring header requiredBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Introduction
Body application/json
-
emailstring requiredThe customer's e-mail address.
min length
3max length255 -
product_idinteger requiredThe id from list_products.
min
1 -
variant_idintegerOnly the grant of this variant. Leave out for all variants of the product.
min
0
Response
Fields of the answer with status 200. Errors always have the same format, see Errors.
-
statusstringThe status.
Allowed values:
revokednot_found -
messagestringWhat happened, in words for the seller.
-
revoked_grantsintegerNumber of grants that were revoked.
-
customer_idinteger can be nullThe customer ID.