> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke key

> Key revoked in live sessions; revoking the last key disables the mailbox

### Path parameters

**mailbox\_id** `string` *required*

Resource identifier

### Request body

`KeyRevocation`

**fingerprint** `string` *required*

### Response

No response body. Key revoked in live sessions; revoking the last key disables the mailbox.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Key revoked in live sessions; revoking the last key disables the mailbox |

### Using this contract

Read the [source OpenAPI document](/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://api.edi.stateset.com/v1/hosted-sftp/mailboxes/{mailbox_id}/revoke-key' \
  --header "Authorization: Bearer $EDI_API_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "fingerprint": "sha256:9f86d081884c7d659a2feaa0c55ad015"
}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.