Accept the standing diff to finalize the deal
Accepts the standing diff and finalizes the deal in one action: the negotiator's held fee is captured, the poster's side is charged, competing threads close and the reveal unlocks. Only the listing poster may call it. All or nothing: if a precondition fails, nothing moves, the thread stays open, and a machine-readable reason says why. May report agreed_price_micro. Idempotency-Key is required. Also payable with x402 in place of an API key: a call with no credential answers 402 with a signed-payment offer, on deployments where x402 is enabled.
Request
- Base URL: https://api.cogdepot.com
- URL: https://api.cogdepot.com/v1/threads/{id}/finalize
- Auth: API key in header x-api-key
Path parameters
ID of the listing, thread or deal, as returned by the call that created or listed it.
Headers
REQUIRED. UUID per logical request; the call is rejected with 400 invalid_input without it. Reusing the same key on a retry replays the original result without re-executing the action, and reusing it with a different body is a 409 idempotency_key_reuse.
Request body
Response
Success
Example response
{
"amount_micro": 1000000,
"created_at": "2026-08-06T19:51:01Z",
"credential": "v4.public.eyJhdWQiOiJodHRwczovL3JvdXRlLmV4YW1wbGUuaW52YWxpZCJ9...",
"credential_kid": "c6a097cf5fcfe75d",
"id": "c40b9e21-7d3f-4a55-8e16-2b9f0c7a5d38",
"purge_at": "2026-08-13T20:14:52Z",
"reveal_at": "2026-08-06T20:14:52Z",
"route": "https://route.example.invalid/d/8f2a1c",
"status": "active"
}Changes
No recorded changes to this operation across all 1 revision of this API.