01
Before you start
Paths are given in full, or relative to /apis/v1/forms where a table says so. Every request needs a Ration bearer token (see Authentication):
Authorization: Bearer <ration_access_token>
Content-Type: application/json02
Form model
Form responses are wrapped in a form object. A form includes its id, title, description, sections and questions, status and acceptance state, author data, sharing and access settings, and builder mechanics such as conditional logic and question settings.
Question and section definitions go in the form body. Keep question IDs stable when you update a form, so submitted answers and analytics stay matched to the right fields.
03
Presets and starter drafts
GET /apis/v1/forms/presetsreturns the presets for the detailed builder, each withkey,labelandsummary.POST /apis/v1/forms/draftcreates a saved starter draft. Sendmethod: "detailed"with apreset, ormethod: "assisted"with a description. Optionalaudience: "external"sets up external or link access. The response containsform,noteandgenerated.
04
Authoring CRUD
| Method | Path | Description |
|---|---|---|
GET | /apis/v1/forms | List visible forms in a forms array. |
POST | /apis/v1/forms | Create a form. Returns 201 with a form object. |
GET | /apis/v1/forms/:id | Read a form. Shared forms also return shared: true. |
PATCH, PUT | /apis/v1/forms/:id | Update the builder definition and return the form. |
DELETE | /apis/v1/forms/:id | Delete a form and return it. |
05
Example minimal form
{
"title": "Product feedback",
"description": "Tell us what you think.",
"sections": [
{
"id": "section-1",
"title": "Feedback",
"questions": [
{ "id": "q1", "type": "short_text", "label": "What worked well?", "required": true }
]
}
]
}06
Publishing lifecycle
Paths in this table are relative to /apis/v1/forms.
| Method | Path | Request | Response |
|---|---|---|---|
POST | /:id/publish | None | Published form. |
POST | /:id/archive | None | Archived form. |
POST | /:id/unarchive | None | Restored form. |
POST | /:id/accepting | accepting Boolean. | Updated form. |
Publishing makes a form available according to its access mode. Archiving stops its normal lifecycle. accepting: false stops collecting responses without deleting the form.
07
Submit as an authenticated user
POST /apis/v1/forms/:id/submit
{
"answers": {
"q1": "The search workflow was very clear."
},
"device_type": "mobile",
"locale": "en"
}| Field | Type | Required | Description |
|---|---|---|---|
answers | Object | Yes | Keys are form question IDs. Values must satisfy their question type and validation. |
device_type | String | No | Responding device classification. |
locale | String | No | Respondent locale. |
metadata | Object | No | Additional client metadata. |
Ration takes the respondent ID, name, email and source from the bearer-authenticated user. Success returns 201 with a response object. Validation errors return 422 with error: "validation_failed" and an errors object.
08
Read responses and analytics
Paths in this table are relative to /apis/v1/forms and need form-owner access.
| Method | Path | Response |
|---|---|---|
GET | /:id/responses | Responses array. Use the supported list query parameters for pagination and filtering. |
GET | /:id/responses/:response_id | One response object. |
GET | /:id/analytics | Analytics object aggregated across the form questions. |
09
Export responses
Paths in this table are relative to /apis/v1/forms.
| Method | Path | Result |
|---|---|---|
GET | /:id/export.csv | CSV attachment named responses-<form-id>.csv. |
GET | /:id/export.xlsx | XLSX attachment named responses-<form-id>.xlsx. |
11
Saved reports
API clients can use the visual report builder. A saved report’s spec is the definition behind its drag-and-drop layout. Paths in this table are relative to /apis/v1/forms.
| Method | Path | Request / response |
|---|---|---|
GET | /:id/report_snapshot | Current materialised per-question snapshot, or snapshot: null. |
GET, POST | /:id/reports | List reports, or create one with required name and spec. |
GET, PUT, DELETE | /:id/reports/:report_id | Read, update (name, spec) or delete a saved report. |
POST | /:id/reports/:report_id/share | Set read-only viewers with emails or shared_with. |
GET | /:id/reports/:report_id/share | List report viewers in shared_with. |
POST | /:id/report.xlsx | Export client-computed report sheets to XLSX. Optional name. |
13
Errors
| Status | Meaning |
|---|---|
401 | Missing or invalid bearer authentication. |
404 | Form or response not found, or not visible to the caller. |
422 | Invalid form definition, validation failure, invalid ID, no changes, or a lifecycle operation that isn’t available. |
Last reviewed 27 November 2026.