---
title: "Commit a sealed input (party invite-token auth)"
method: POST
path: "/v1/deals/{id}/commit"
tags: ["deals"]
---

# Commit a sealed input (party invite-token auth)

`POST /v1/deals/{id}/commit`

## Request

- Base URL: `https://api.redeal.dev`
- URL: `https://api.redeal.dev/v1/deals/{id}/commit`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `commitment` string, required: sha256:<hex of sha256(JCS(party_input) ++ salt_bytes)>

## Response `200`

Commitment recorded

- object
  - `deal_id` string
  - `state` string
  - `party` integer
  - `committed` boolean
  - `next` string: instructive next step

## Other responses

- `400`: Error. The message is instructive: it names the code and the fix.
- `401`: Error. The message is instructive: it names the code and the fix.
- `403`: Error. The message is instructive: it names the code and the fix.
- `409`: Error. The message is instructive: it names the code and the fix.

---

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