---
title: "Disconnect an app"
method: DELETE
path: "/self/oauth-grants/{oauth_grant_id}"
tags: ["OAuth Consent"]
---

# Disconnect an app

`DELETE /self/oauth-grants/{oauth_grant_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/self/oauth-grants/{oauth_grant_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Takes effect on the app's very next call: its access and refresh tokens stop working.

## Path parameters

- `oauth_grant_id` integer, required: ID of the connected app to disconnect

## Response `204`

Access revoked

## Other responses

- `400`: Bad request syntax or unsupported method
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help
- `404`: Not found

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
