---
title: "Revoke immediately or with a 24-hour grace period"
method: DELETE
path: "/v1/keys/{keyId}"
tags: ["Keys"]
---

# Revoke immediately or with a 24-hour grace period

`DELETE /v1/keys/{keyId}`

## Request

- Base URL: `https://api.scripthaul.com`
- URL: `https://api.scripthaul.com/v1/keys/{keyId}`
- Auth: HTTP bearer

## Request body

- object
  - `grace_period_hours` 0 | 24

## Response `200`

Revoked or scheduled

## Other responses

- `400`: Typed API error
- `401`: Typed API error
- `403`: Typed API error
- `404`: 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)
