Skip to Content

Create Form

Creates a new form under the specified project.

POST /v1/forms

Request

curl -X POST https://api.formtorch.com/v1/forms \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "projectId": "p9q8r7s6t5", "name": "Contact Form" }'

Request body

FieldTypeRequiredDescription
projectIdstringYesID of the project to create the form under
namestringYesDisplay name for the form

Response

Returns the created form object with status 201 Created.

{ "id": "a1b2c3d4e5", "name": "Contact Form", "projectId": "p9q8r7s6t5", "endpoint": "https://formtorch.com/f/a1b2c3d4e5", "submissionCount": 0, "createdAt": "2025-03-15T10:00:00.000Z", "updatedAt": "2025-03-15T10:00:00.000Z" }

Response fields

FieldTypeDescription
idstringForm ID (10 characters)
namestringForm display name
projectIdstringParent project ID
endpointstringFull submission endpoint URL
submissionCountintegerAlways 0 for a new form
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last updated timestamp
Last updated on