Skip to content

Revoke an M2M API client. The local row is revoked FIRST (that is what cuts access, because the auth middleware rejects tokens for revoked rows immediately), then the Stytch client is deleted best-effort. A Stytch cleanup failure is logged at ERROR (routed to the internal error notifier) but does not fail the request: access is already cut.

DELETE
/account/m2m_client/{m2m_client_id}
curl --request DELETE \
--url https://api.siteqwality.com/account/m2m_client/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
m2m_client_id
required
string format: uuid

M2M client identifier (local id, not the Stytch client_id)

Client revoked

Missing or invalid authentication

Caller lacks the owner or admin role

Client not found

Internal server error