Release a submission
Not spam: a held or spam submission becomes accepted and is delivered (webhooks, notifications, contacts), and Risk records its assessment as legitimate. Releasing an accepted submission returns it as is.
bearerAuthAuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
id*stringThe form's id.
submission_id*stringThe submission's id.
Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
"2026-10-10"The released submission.
application/json- response
- response
- …
object*"form_submission""form_submission"id*stringform_id*stringstatus*stringaccepted: delivered (webhooks, notifications, contacts). held: Risk asked for a review. spam: refused by Risk, the content check or the honeypot. pending_confirmation: waiting for the submitter's email link.
"pending_confirmation""accepted""held""spam"data*Field name → value; a field posted several times has an array.
submitter_email*string|nullfiles*array<>spam_reason*|"honeypot""risk_block""risk_review""content"nullrisk*|Risk's assessment; null when none ran (honeypot).
ip*string|nulluser_agent*string|nullorigin*string|nullreferrer*string|nullconfirmed_at*|date-timeaccepted_at*|date-timereleased_at*|date-timesandbox*booleancreated_at*stringdate-timeimport { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.forms.submissions.release("form_01kd2m8n3p4q5r6s7t8v9w0x1y", "fsub_01kd2m9a0b1c2d3e4f5g6h7j8k");{ "object": "form_submission", "id": "fsub_01kd2m9a0b1c2d3e4f5g6h7j8k", "form_id": "form_01kd2m8n3p4q5r6s7t8v9w0x1y", "status": "accepted", "data": { "name": "Ada Lovelace", "email": "ada@example.com", "message": "Hello!" }, "submitter_email": "ada@example.com", "files": [], "spam_reason": null, "risk": { "assessment_id": "rsk_01kd2m9a0b1c2d3e4f5g6h7j8n", "decision": "allow", "score": 0.04 }, "ip": "203.0.113.7", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)", "origin": "https://www.example.com", "referrer": "https://www.example.com/contact", "confirmed_at": null, "accepted_at": "2026-10-29T10:00:00.000Z", "released_at": null, "sandbox": false, "created_at": "2026-10-29T10:00:00.000Z"}