For AI agents: the complete documentation index is available at /docs/llms.txt, the full documentation bundle is available at /docs/llms-full.txt, and this page is available as Markdown at /docs/api/reference.md.

OpenAPI reference

FormRoost publishes the formal OpenAPI 3.1.2 contract for the public submission API:

What the spec covers

  • Endpoint: POST /s/v1/{environment}/{submissionId} (sandbox or production, fpub_... IDs)
  • Request bodies: application/json and application/x-www-form-urlencoded
  • Optional header: Idempotency-Key (8–200 characters)
  • Security model: Public browser Origin validation or HTTP Bearer project API key (bearerAuth)
  • Responses: 201 AcceptedSubmission, 303 See Other HTML redirects, and structured application/problem+json errors (400, 401, 403, 404, 409, 413, 422, 429, 503)

You can import /docs/openapi/submission-v1.json directly into Postman, Insomnia, Swagger UI, Redoc, or typed API client generators, and pair it with Error responses when mapping status codes and Problem.code handlers.