---
title: "Reveal an input against a prior commitment"
method: POST
path: "/v1/deals/{id}/reveal"
tags: ["deals"]
---

# Reveal an input against a prior commitment

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

## Request

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

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `input` object, required: the party_input for the deal's algorithm, within the bounds served at GET /v1/algorithms (out-of-bounds input is rejected, never clamped)
  - `salt` string: the salt used in the commitment (default empty)

## Response `200`

Reveal accepted. When all parties reveal, the algorithm runs and the certificate is issued automatically.

- object
  - `deal_id` string
  - `state` string
  - `party` integer
  - `revealed` boolean
  - `result` object, nullable: populated once the deal COMPUTED

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