Skip to content

Submissions

A submission is the data a human enters into a form. Submissions are immutable, versioned to the form definition at the time of submission, and retained according to the form’s settings.retentionDays.

Watch for new submissions in real time:

Terminal window
agentsforms submissions tail support-intake

Output:

[2026-06-23 10:30:22] sub_def456 email=user@example.com priority=high
[2026-06-23 10:31:05] sub_def457 email=other@example.com priority=low
Terminal window
agentsforms submissions list support-intake --limit 20

For machine-readable output:

Terminal window
agentsforms submissions list support-intake --json
Terminal window
agentsforms submissions get sub_def456

Or via API:

Terminal window
curl -X GET https://api.agentsforms.com/v1/submissions/sub_def456 \
-H "Authorization: Bearer $AGENT...EY"

Response:

{
"submission": {
"id": "sub_def456",
"form_id": "form_abc123",
"form_version": 1,
"session_id": "sess_xyz789",
"answers": {
"email": "user@example.com",
"priority": "high",
"message": "My billing page is broken"
},
"partial": false,
"submitted_at": "2026-06-23T10:30:22Z"
}
}

The answers object maps field ids to their submitted values:

Field typeAnswer value shape
text, textarea, email, urlstring
numbernumber
boolean, checkboxboolean
datestring (ISO 8601)
select, radiostring (the selected value)
multi_selectstring[] (array of selected values)
hiddenunknown (whatever was prefilled)
file{ filename: string, url: string, size: number }

Submissions are retained for the number of days specified in settings.retentionDays. After that, they are permanently deleted. If retentionDays is not set, submissions are retained indefinitely.