---
title: "Cancel a stake"
method: POST
path: "/stakes/{stake_id}/cancel"
tags: ["Staking"]
---

# Cancel a stake

`POST /stakes/{stake_id}/cancel`

Cancel a pending stake request before it is fully processed.

## Path parameters

- `stake_id` string, required

## Headers

- `X-SCX-SIGNED` string, required
- `X-SCX-TIMESTAMP` string, required
- `X-Request-Id` string, uuid

## Response `200`

Stake cancellation submitted

- PostCancelStakeResponse
  - `request_id` string — Request identifier
  - `message` object
    - `stake_id` string — The stake ID being cancelled

## Other responses

- `400` — Validation failed
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/zerohash/apis/zerohash-api.md) · [All operations](https://skmtc.net/zerohash/apis/zerohash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zerohash/zerohash-api/revisions/8b647d934363/schema)
