Close a thread before finalization (status: rejected)
Ends a thread that has not finalized, with status rejected. Either party may call it, and the negotiator's escrowed fee returns to spendable on their next call. 409 if the thread already finalized. 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}/close
- 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
Close carries no meaningful body; the thread is identified by the {id} path parameter. The request body itself is optional - sending nothing at all is accepted.
Example request
{}Response
Success
Example response
{
"amount_micro": 1000000,
"created_at": "2026-08-06T19:51:01Z",
"diff": "Interested at 900000 uUSD with a 5-day delivery window. Can commit today if that works.",
"id": "1f7c4a90-2b18-4d63-9a02-6e5b7c81d4aa",
"listing_id": "5139e0f2-6af6-4e4e-a05c-f9587cdd06ce",
"status": "open",
"turn": "poster",
"updated_at": "2026-08-06T20:02:14Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.