---
title: "Accept the current terms — COMMITS, and cannot be undone"
method: POST
path: "/v1/threads/{id}/accept"
---

# Accept the current terms — COMMITS, and cannot be undone

`POST /v1/threads/{id}/accept`

## Request

- Base URL: `https://api.hashlock.markets`
- URL: `https://api.hashlock.markets/v1/threads/{id}/accept`
- Auth: HTTP bearer

Name the price you are accepting: it is refused if the terms moved since you read the thread. The initiator (funds the long leg) also passes hashlock = sha256(secret); when BOTH sides accept, the swap is created.

## Path parameters

- `id` string, required

## Request body

- object
  - `quoteAmount` string, required: the current price, base units — must equal the thread's currentQuoteAmount
  - `hashlock` string: 32-byte hex; required from the initiator

## Response `200`

ok — returns { thread, swap? }

- object

## Other responses

- `400`: error

---

[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)
