---
title: "Delete a webhook, close the account, or revoke a connected app"
method: DELETE
path: "/v1/account"
tags: ["Account"]
---

# Delete a webhook, close the account, or revoke a connected app

`DELETE /v1/account`

## Request

- Base URL: `https://api.scripthaul.com`
- URL: `https://api.scripthaul.com/v1/account`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sh_dashboard`

Dashboard mutations require the session cookie and X-ScriptHaul-Dashboard: 1. resource=connected_apps&id=<grant_id> revokes an OAuth grant and requires a dashboard session. Refresh-token revocation and local authentication-cache invalidation are immediate; another isolate can accept an already memoized access token for up to 30 seconds, never beyond its expiry. It cannot be called with an API key or an OAuth token. Other resource modes retain their existing authentication rules.

## Query parameters

- `resource` 'webhook' | 'account' | 'connected_apps', required
- `id` string

## Headers

- `X-ScriptHaul-Dashboard` '1'

## Response `200`

Selected account resource removed. Revoking a connected app returns {ok:true, revoked:true}.

## Other responses

- `400`: Typed API error
- `401`: Typed API error
- `403`: Typed API error

---

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