Revoke a connected app
Requires scope: manage. Ends the sign-in, as Revoke in Settings › Connected apps does: every access and refresh token it was issued stops working at once, and the app has to be approved again to get back in. The API keys and webhook endpoints it created, and the webhook signing secrets it was shown, stay; the response counts them, so revoke and rotate those yourself. (Only when one of its refresh tokens is used twice, a sign of theft, does mails.ai remove them as well, and rotate those secrets again.) Idempotent: revoking an app already revoked returns its existing revoked_at. Closed to apps connected by sign-in (403 connected_app_not_allowed), and to a key tied to one agent (403): use an API key with manage that is not tied to an agent, or the mails CLI.
Request
- Base URL: https://api.mails.ai
- URL: https://api.mails.ai/v1/oauth/grants/{id}
- Auth: HTTP bearer
Path parameters
The connected app's id (oag_…), from List connected apps.
Response
The revoked app, with what it left behind.
Changes
No recorded changes to this operation across all 1 revision of this API.