Delete a webhook, close the account, or revoke a connected app
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.
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
Query parameters
webhook deletes the default endpoint; account closes the account: keys revoked and sessions ended immediately, personal data anonymized 30 days later; refused with 409 while jobs are active, a refund is pending, or refund debt is outstanding. connected_apps revokes the OAuth grant selected by id and requires a dashboard session; refresh and local cached access stop immediately, while another isolate may accept an already memoized access token for up to 30 seconds.
Connected-app grant id. Required when resource=connected_apps; obtained from the session-authenticated connected-apps list.
Headers
Required for dashboard-session mutations.
Response
Selected account resource removed. Revoking a connected app returns {ok:true, revoked:true}.
Changes
No recorded changes to this operation across all 1 revision of this API.