---
title: "Build UNSIGNED claim (reveals the secret) — body: { secret: 32-byte hex }"
method: POST
path: "/v1/swaps/{id}/legs/{leg}/claim"
---

# Build UNSIGNED claim (reveals the secret) — body: { secret: 32-byte hex }

`POST /v1/swaps/{id}/legs/{leg}/claim`

## Request

- Base URL: `https://api.hashlock.markets`
- URL: `https://api.hashlock.markets/v1/swaps/{id}/legs/{leg}/claim`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `leg` 'a' | 'b', required

## Request body

- object
  - `secret` string, required

## Response `200`

signing material

- object

## Other responses

- `400`: error
- `504`: a chain or explorer read of ours ran out of time — nothing was changed; retry (an Idempotency-Key does not remember a 504)

---

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