clerk.revoke_m2m_token
Revoke an M2M token by id in a connected Clerk instance.
Sensitive — invalidates a machine authentication token.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the revoked M2M token.
Cost = 8 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m2m_token_id | Yes | Clerk M2M token id (mt_...) to revoke. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m2m_token | No | Revoked M2M token from the Backend API. |