Browse and search developers

Forms

Publish a form

Publishes the current draft as a new version. Fails with a plan_error if the form uses a block your plan does not include.

On this page
  1. Parameters
  2. Request body
  3. Response
  4. Errors
POST/v1/forms/{formId}/publishScope: forms:write
curl -X POST "https://api.formitai.com/v1/forms/FORM_ID/publish" \
  -H "Authorization: Bearer $FORMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d 'null'

Parameters

Path

  • formIdstringRequired

Request body

No fields.

Response 200

  • idstringRequired
  • publishedtrueRequired
  • versioninteger or nullRequired
Example response
{
  "id": "item_id",
  "published": true,
  "version": 1
}

Errors

  • 400Invalid request: validation_failed with field details, or malformed JSON.
  • 401Missing or invalid API key.
  • 403The key lacks the scope, or its creator lacks the workspace permission.
  • 404Not found in this key’s workspace.
  • 429Rate limit exceeded. Wait for Retry-After seconds.

Ready?

Build your first AI form in minutes.

No credit card. Generate from a prompt, enable follow-ups, and publish a link or embed the same day.