Create a form
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/forms';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"allowed_origins":["example"],"honeypot_field":"example","name":"example","notify_emails":["example"],"notify_team":true,"redirect_url":"example","retention_days":1,"store_ip":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.deploybase.eu/api/v1/api/v1/projects/example/forms \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "allowed_origins": [ "example" ], "honeypot_field": "example", "name": "example", "notify_emails": [ "example" ], "notify_team": true, "redirect_url": "example", "retention_days": 1, "store_ip": "example" }'Creates a form endpoint for a project. The returned public_id is permanent and forms the public ingestion URL.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Request Body
Section titled “ Request Body ”Form settings
object
NotifyTeam: whether team members get this form’s emails. Omitted means true.
Example generated
{ "allowed_origins": [ "example" ], "honeypot_field": "example", "name": "example", "notify_emails": [ "example" ], "notify_team": true, "redirect_url": "example", "retention_days": 1, "store_ip": "example"}Responses
Section titled “ Responses ”Created
object
object
object
Name is the dashboard identity, unique per project among live rows only — a soft-deleted form releases its name (uq_forms_project_name_active).
NotifyTeam says whether the team gets this form’s submission emails at all (members from NotifyEmails, else the team notification address). false sends them nothing, so a form can go to its external recipients alone; NotifyEmails is kept, not cleared, so switching back on restores the pick. External recipients are not governed by it.
No default:true in the GORM tag, deliberately, though the COLUMN defaults to true (see
TeamIDPConnection.JitEnabled): GORM substitutes the tag default for a zero value on INSERT,
so a form created with notify_team=false would be written true. Every writer states the
value; CreateFormInput.NotifyTeam is a *bool resolved to true when omitted.
ProjectID is immutable after creation. This is enforced structurally rather than by a check: UpdateFormInput has no project_id field, so no code path can reassign it.
PublicID is immutable after creation: it is baked into the customer’s deployed HTML, so regenerating it would silently break every live form pointing at it.
Example
{ "data": { "source": "manual", "store_ip": "none" }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Project not found
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}A form with this name already exists in this project
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built