Get a submission
One submission of the form, with its data, files and Risk's assessment.
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 submission.
application/json- response
- response
- …
object*"form_submission""form_submission"id*stringform_id*stringThe id of the form it was posted to.
status*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*|The value of the form's submitter.email_field. null when it has none.
files*array<>Uploaded files. Download them with the API.
spam_reason*|Why it was flagged. honeypot: the honeypot field was filled. risk_block: Risk blocked it. risk_review: Risk asked for a review. content: its text passed content_threshold. null: not flagged.
"honeypot""risk_block""risk_review""content"nullrisk*|Risk's assessment; null when none ran (honeypot).
ip*|The address it was posted from. null: unknown.
user_agent*|The browser's User-Agent. null: not sent.
origin*|The site it was posted from. null: not sent.
referrer*|The page it was posted from. null: not sent.
confirmed_at*|When the submitter clicked the emailed link. null: they haven't, or the form doesn't verify.
date-timeaccepted_at*|When it became accepted. null: it hasn't.
date-timereleased_at*|When it was released from held or spam. null: it wasn't.
date-timesandbox*booleanWhether it belongs to a sandbox environment.
created_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.get("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"}