Skip to main content
BuoyForms
Docs

API Reference

On this page

Access BuoyForms programmatically with our REST API.

Authentication

All authenticated API requests require an API key. Send the key in either the Authorization or X-API-Key header:

curl https://buoyforms.com/api/v1/forms \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY"

curl https://buoyforms.com/api/v1/forms \
  -H "X-API-Key: $BUOYFORMS_API_KEY"

Create API keys in Settings > API Keys.

Give each key only the scopes that its integration needs. The API checks the key's organization and scope on every request.

API keys and connected AI tools stop working when their creator is banned, deactivated through SCIM, deleted, or removed from the Organization. Before offboarding a team member, replace the credentials their integrations still need with credentials from an active member.

Unbanning a creator restores access only if they are still an active member of the Organization and the credential has not expired or been revoked. To lift a platform ban or an older ban that SCIM cannot identify, a platform admin selects Unban on the platform Users page.

Scope Access
forms:read Read form metadata, structure, field types, templates, revisions, and FormContract exports
forms:write Create, clone, restore, edit, patch, import FormContracts, and replace form structure
forms:publish Enable and disable forms, and publish form metadata
forms:ownership Reassign form ownership within the organization
submissions:read List, filter, inspect, and export form submissions
submissions:write Validate, upload files to, save sessions for, create, delete, restore, and purge submissions
submissions:sensitive_read Reveal encrypted sensitive submission values and mint download URLs for uploaded submission files
automations:read Read automation workflows, versions, operations, runs, and approvals
automations:write Create and update automation drafts
automations:publish Publish, pause, and roll back automations
automations:operate Start automation test runs, manage run cancel/retry/replay/repair, and change the notification sender
automations:approve Decide or cancel human-in-the-loop automation approvals and request submission reviews
automations:sensitive_data Use automation nodes that reference sensitive fields
themes:read Read themes, versions, exports, and form assignments
themes:write Create, edit, import, restore, apply, detach, and delete themes
analytics:read Read form analytics summaries, daily trends, field breakdowns, and AI text analysis
webhooks:read Read webhook configurations and delivery logs
webhooks:write Create, update, test, retry, and delete webhooks
integrations:read Read form integration configurations
integrations:write Create, update, and trigger form integrations

Namespace scopes such as forms:*, submissions:*, automations:*, themes:*, analytics:*, webhooks:*, and integrations:* include the scopes in that namespace. The global * scope includes every API scope.

Base URL

https://buoyforms.com/api/v1

The OpenAPI spec is served at /openapi.yaml.

Rate Limits

API access is on the Business plan and above. Rate limits vary by plan and are enforced per API key:

Plan Requests/Minute
Business 100
Scale 500
Salesforce Integration Suite 2,000
Enterprise 2,000

Rate Limit Headers

Every API response includes rate limit headers:

Header Description
X-RateLimit-Limit Maximum requests per window
X-RateLimit-Remaining Requests remaining in current window
X-RateLimit-Reset Unix timestamp when limit resets

Handling Rate Limits

When rate limited, the API returns HTTP 429 with a Retry-After header indicating seconds to wait.

{
  "error": "rate_limit_exceeded",
  "message": "Too many requests",
  "retryAfter": 45
}

Best practices:

  • Implement exponential backoff on 429 responses
  • Cache responses where possible
  • Batch operations when supported
  • Monitor your X-RateLimit-Remaining header

Endpoints

Forms

List Forms

GET /forms

Returns up to 100 non-deleted forms scoped to the API key's organization, ordered by updatedAt desc. Use ownerId to filter by the current owner. Each form includes an owner object.

Response:

{
  "forms": [
    {
      "id": "form_abc123",
      "title": "Contact Form",
      "description": "",
      "status": "published",
      "createdAt": "2025-01-15T10:00:00Z",
      "updatedAt": "2025-01-20T14:30:00Z",
      "owner": {
        "id": "user_abc123",
        "name": "Ada Lovelace",
        "email": "ada@example.com",
        "avatarUrl": null
      }
    }
  ]
}

Reassign one form

POST /forms/:formId/owner

Use forms:ownership to assign a form to another active member of the same organization. Set expectedOwnerId when a concurrent ownership change must fail instead of being overwritten. Set includeArchived or includeDeleted to include forms outside the active list.

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/owner" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ownerId":"user_new_owner","expectedOwnerId":"user_departing"}'

Reassign multiple forms

POST /forms/ownership/reassign

Send either formIds or sourceOwnerId, but not both. The operation is atomic. Archived and deleted forms are excluded by default. Set dryRun to inspect the matching forms without changing ownership.

curl -X POST "https://buoyforms.com/api/v1/forms/ownership/reassign" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ownerId":"user_new_owner",
    "sourceOwnerId":"user_departing",
    "includeArchived":true,
    "includeDeleted":true
  }'

The response includes matchedCount, updatedCount, the target owner, and the affected forms. Requests return 409 when an explicit form ID is missing, ineligible, or fails its expectedOwnerId check.

Get Form

GET /forms/:formId

Returns the form with its full structure (pages, fields, settings).

Create Form

POST /forms

Body:

{
  "title": "Survey Form",
  "description": "Customer feedback survey",
  "slug": "survey",
  "status": "draft"
}

Only title is required. Add pages and fields together when you want to create the initial form structure in the same request.

Update Form

PUT /forms/:formId

Updates form metadata such as the title, description, slug, or status. Use forms:write for title, description, and slug changes. Use forms:publish when changing status to draft or published. Use forms:write to archive a form.

curl -X PUT "https://buoyforms.com/api/v1/forms/$FORM_ID" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Updated contact form"}'

Replace Form Structure

PUT /forms/:formId/structure

Atomically replaces the form's pages, fields, validation rules, conditional logic, and settings. The request replaces the complete structure. Read the current structure first when you need to preserve fields that are not changing.

curl "https://buoyforms.com/api/v1/forms/$FORM_ID/structure" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY"

curl -X PUT "https://buoyforms.com/api/v1/forms/$FORM_ID/structure" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "pages": [
      {"id":"page_contact","title":"Contact","order":0}
    ],
    "fields": [
      {
        "id":"field_email",
        "type":"email",
        "label":"Email address",
        "required":true,
        "config":{},
        "validationRules":{},
        "order":0,
        "pageId":"page_contact"
      }
    ],
    "settings": {}
  }'

If the structure changes fields used by an active Salesforce mapping, the API returns 409. Review the affected mappings and resend the request with the salesforcePauseConfirmation object from the error details.

Enable and disable a form

Use forms:publish to change whether a form accepts public submissions:

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/enable" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY"

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/disable" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY"

The enable request checks the form publish gate. Resolve every reported blocker before retrying a form that returns 409.

Body:

{
  "pages": [...],
  "fields": [...],
  "settings": {...}
}

Delete Form

DELETE /forms/:formId

Soft-deletes the form.

Submissions

List Submissions

GET /forms/:formId/submissions

Query Parameters:

  • limit (integer, default 50): Results per page
  • offset (integer, default 0): Pagination offset
  • startDate (ISO date): Filter by submission date
  • endDate (ISO date): Filter by submission date

Get Submission

GET /submissions/:submissionId

Create Submission

POST /forms/:formId/submissions

Used for authenticated programmatic form submissions. This endpoint is authenticated with API keys and does not use Turnstile/CAPTCHA verification.

If you are submitting through a published public form or embed, bot protection is controlled by the form's botProtection settings. When bot protection is enabled, the public submission request must include the CAPTCHA token collected by the public form runtime.

Body:

{
  "data": {
    "fld_email01": "user@example.com",
    "fld_full_name01": {
      "format": "full",
      "fullName": "Ada Lovelace"
    },
    "fld_split_name01": {
      "format": "split",
      "firstName": "Grace",
      "lastName": "Hopper"
    },
    "fld_sensitive_name01": "Redacted",
    "fld_message01": "Hello!"
  },
  "submitterEmail": "user@example.com",
  "submitterName": "Jane Example"
}

Native Name fields use a structured value. Full mode sends { "format": "full", "fullName": "..." }; First and last mode sends { "format": "split", "firstName": "...", "lastName": "..." }. BuoyForms does not parse a Full name to manufacture separate parts. When a Name field is configured as sensitive, normal API reads return the string "Redacted" through the existing safe-value boundary.

If the form includes a payment field, BuoyForms verifies the PaymentIntent before opening the database transaction. BuoyForms claims the PaymentIntent inside the Submission transaction. A committed PaymentIntent cannot be used for another Submission.

Delete Submission

DELETE /submissions/:submissionId

Fields: there is no separate /fields CRUD in v1. Manage fields through the PUT /forms/:formId/structure endpoint, which replaces the pages/fields/settings atomically.

Automations

Automation requests use the form path because every workflow belongs to one form. A draft update uses an optimistic concurrency check. Send the revision returned by the latest draft as expectedRevision.

Create and publish an automation

Create a default draft with a name, or send a complete document that matches the AutomationGraphDocument schema in the OpenAPI specification:

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/automations" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Notify the team"}'

Use the returned workflow.workflowId and call the draft endpoint to read the current draft:

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/automations/$WORKFLOW_ID/draft" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY"

Update the draft with the complete document. Keep the document's graph.formId equal to the form ID:

curl -X PUT "https://buoyforms.com/api/v1/forms/$FORM_ID/automations/$WORKFLOW_ID/draft" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d @draft-update.json

draft-update.json has this shape:

{
  "expectedRevision": "2026-10-02T12:00:00.000Z",
  "document": {
    "schemaVersion": 1,
    "metadata": {"name": "Notify the team"},
    "graph": {
      "formId": "form_abc123",
      "nodes": {
        "trigger": {"id":"trigger","type":"submission.completed","config":{}},
        "complete": {"id":"complete","type":"internal.noop","config":{}}
      },
      "edges": {
        "trigger_complete": {
          "id":"trigger_complete",
          "source":{"nodeId":"trigger","portId":"next"},
          "target":{"nodeId":"complete","portId":"in"},
          "dataType":"control"
        }
      }
    }
  }
}

Publish the saved draft with its latest revision:

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/automations/$WORKFLOW_ID/publish" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expectedRevision":"2026-10-02T12:00:00.000Z"}'

Publishing validates the graph and sensitive-field permissions. A failed publish returns 422 with the blockers. A stale expectedRevision returns 409 with automation_revision_conflict; fetch the draft again, merge the change, and retry with the new revision.

Operate an automation

Use these endpoints with automations:publish for lifecycle actions:

POST /forms/:formId/automations/:workflowId/pause
POST /forms/:formId/automations/:workflowId/rollback

Rollback requires a published versionId:

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/automations/$WORKFLOW_ID/rollback" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"versionId":"version_abc123"}'

Use automations:operate to start a test run. Existing submission fixtures also require submissions:read:

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/automations/$WORKFLOW_ID/test" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "testerUserId":"user_abc123",
    "expectedRevision":"2026-10-02T12:00:00.000Z",
    "fixture":{"kind":"generated"}
  }'

Select the notification sender

The default notification workflow can use the legacy sender or the workflow sender. The cutover endpoint requires both automations:publish and automations:operate:

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/automations/$WORKFLOW_ID/notification-sender" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"targetSender":"workflow"}'

curl -X POST "https://buoyforms.com/api/v1/forms/$FORM_ID/automations/$WORKFLOW_ID/notification-sender" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"targetSender":"legacy"}'

The service checks the notification workflow's cutover preconditions. A 409 means that the workflow or shadow state is not ready for the requested sender.

Themes

Themes are organization resources. Use themes:read to inspect themes and themes:write to change them. Custom themes require the custom branding feature on the organization.

Create or import a theme

Create a theme with validated BuoyForms token JSON:

curl -X POST "https://buoyforms.com/api/v1/themes" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d @theme.json

theme.json requires name and tokens. The token document must match the theme schema used by the builder. Use an exported theme as a starting point when you need the complete token shape. DTCG imports use this form:

curl "https://buoyforms.com/api/v1/themes/$THEME_ID/export" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -o theme.tokens.json

jq --arg name "Brand theme copy" \
  '{name: $name, document: .}' theme.tokens.json \
  | curl -X POST "https://buoyforms.com/api/v1/themes/import" \
      -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
      -H "Content-Type: application/json" \
      --data-binary @-

The API checks color contrast. A failed check returns 422. Only send allowOverride: true with an overrideReason when the organization has reviewed the exception.

Apply or detach a theme

Apply a theme to a form with themes:write:

curl -X PUT "https://buoyforms.com/api/v1/forms/$FORM_ID/theme" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"themeId":"theme_abc123"}'

Detach the current theme with DELETE:

curl -X DELETE "https://buoyforms.com/api/v1/forms/$FORM_ID/theme" \
  -H "Authorization: Bearer $BUOYFORMS_API_KEY"

Use GET /forms/:formId/theme to inspect the current assignment. Use GET /themes/:themeId/versions and POST /themes/:themeId/versions/:versionId/restore to review and restore a previous theme version.

Webhooks

List Webhooks

GET /webhooks

List accepts an optional ?formId= query parameter to filter by form.

Create Webhook

POST /webhooks

Body:

{
  "name": "My webhook",
  "url": "https://your-app.com/webhook",
  "events": ["form.submission.created"],
  "formId": "form_abc123",
  "enabled": true
}

Omit formId for an Organization-wide webhook. name, url, and events are required. See Webhook events for the events BuoyForms delivers.

Update Webhook

PUT /webhooks/:webhookId

Delete Webhook

DELETE /webhooks/:webhookId

Inspect and Retry Webhook Deliveries

GET /webhooks/:webhookId/deliveries
POST /webhooks/:webhookId/test
POST /webhooks/:webhookId/deliveries/:deliveryId/retry

When creating a webhook via POST /webhooks, the 201 Created response returns a one-time signingSecret field at the top level so your receiver can verify X-BuoyForms-Signature headers immediately. Subsequent GET and PUT calls redact the secret.

Agentic Form Engine Endpoints

AI patch validation returns valid and warnings. patches/apply rejects a proposal with valid: false (422 invalid_patch), and every warning on such a proposal is a blocking reason. A valid proposal can still carry advisory warnings: removing a field that page or field conditional logic, an exit page condition, or a focused-flow routing rule still references adds a warning that names each dependent, whose rules would then point at a missing field.

Autonomous agents can discover field schemas, validate candidate structures, preview or apply surgical AI patches, exchange canonical @portstbd/form-contract payloads, and manage form revisions:

GET  /field-types
GET  /templates
POST /forms/from-template
POST /forms/:formId/clone
POST /forms/:formId/restore
GET  /forms/:formId/publish-gate
POST /forms/:formId/validate
POST /forms/:formId/structure/validate
POST /forms/:formId/validate-structure
POST /forms/:formId/patches/preview
POST /forms/:formId/patches/apply
POST /forms/:formId/copilot/propose
GET  /forms/:formId/contract
PUT  /forms/:formId/contract
GET  /forms/:formId/revisions
GET  /forms/:formId/revisions/:revisionId
POST /forms/:formId/revisions/:revisionId/restore

In GET /field-types, each type's category is the field palette's display grouping and may change between releases; do not key integrations on it. It reports scoring for nps, csat, ces, likert-score, likert-scale, rating, and scale.

patches/apply, PUT /forms/:formId/contract, and revision restore replace the whole structure, so they return the same 409 conflicts as PUT /forms/:formId/structure. form_field_removal_conflict means a removed field is still mapped, hidden, or prefilled. name_mode_change_requires_salesforce_pause means a Name field changes from split to full while live Salesforce mappings read its parts; the body carries code, reason, and details with the fingerprint and affectedConfigs. Like PUT /forms/:formId/structure, these endpoints take an optional salesforcePauseConfirmation (action: "pause_affected_configs", the fingerprint, and every affectedConfigs[].integrationConfigId as expectedIntegrationConfigIds). Resend the same request with it to pause those mappings in the same write; the audit entry lists them as pausedIntegrationConfigIds. patches/apply takes it beside proposal, PUT /forms/:formId/contract takes it beside contract (a bare FormContract body can't carry it), and restore takes it as the whole body. A confirmation that no longer matches the affected mappings returns 409 with reason confirmation_stale and fresh details; a malformed one returns 400 validation_error.

FormContract flow steps carry no page title or description, and FormContract conditions only target fields, so an exported contract doesn't carry page titles, descriptions, or page conditional logic. PUT /forms/:formId/contract keeps the existing title, description, and conditional logic of every page whose id matches a contract flow step. A page with a new id gets a title derived from its step id (contact_details becomes Contact details) and no description or page logic. Kept rules that read a field missing from the contract are dropped, and a page left with no rules loses its logic instead of depending on a missing field. Each such page, and each page with logic whose id no longer appears in the contract, is listed in the response warnings as page_logic_dropped.

Respondent & Triage Submission Endpoints

Both public respondent agents (/api/public/forms/:formId/...) and authenticated operator agents (/api/v1/forms/:formId/...) can dry-run validate multi-step submissions, upload files directly to S3 via intent/confirm tokens, and save or resume partial sessions:

POST /forms/:formId/submissions/validate
POST /forms/:formId/uploads/intent
POST /forms/:formId/uploads/confirm
GET  /forms/:formId/sessions/:clientSessionId
PUT  /forms/:formId/sessions/:clientSessionId
GET  /forms/:formId/submissions/export
POST /forms/:formId/submissions/bulk-delete
POST /forms/:formId/submissions/restore
POST /forms/:formId/submissions/purge
POST /submissions/:submissionId/reveal-sensitive
GET  /submissions/:submissionId/files/:fileId/download-url

Analytics & AI Text Analysis

Use analytics:read to inspect funnel conversion, daily submission trends, field breakdowns, and open-ended text analysis (word frequency, sentiment, and topics, with sensitive fields excluded):

GET /forms/:formId/analytics
GET /forms/:formId/text-analysis

Automation Versions, Runs, and Approvals

Inspect published workflow versions, monitor and recover automation runs, and decide human-in-the-loop approvals:

GET  /forms/:formId/automations/:workflowId/versions
GET  /forms/:formId/automations/:workflowId/versions/compare
GET  /forms/:formId/automations/:workflowId/versions/:versionId
POST /forms/:formId/automations/:workflowId/versions/:versionId/draft
GET  /forms/:formId/automations/operations
GET  /forms/:formId/automations/:workflowId/runs
GET  /forms/:formId/automations/:workflowId/runs/:runId
POST /forms/:formId/automations/:workflowId/runs/:runId/cancel
POST /forms/:formId/automations/:workflowId/runs/:runId/retry
GET  /forms/:formId/automations/:workflowId/runs/:runId/replay-preview
POST /forms/:formId/automations/:workflowId/runs/:runId/replay-preview
POST /forms/:formId/automations/:workflowId/runs/:runId/replay
POST /forms/:formId/automations/:workflowId/runs/:runId/repair
GET  /forms/:formId/automations/approvals
GET  /forms/:formId/automations/approvals/:approvalId
POST /forms/:formId/automations/approvals/:approvalId/decide
POST /forms/:formId/automations/approvals/:approvalId/cancel
GET  /forms/:formId/submissions/:submissionId/automation
POST /forms/:formId/submissions/:submissionId/automation/request-review

Error Responses

Errors return appropriate HTTP status codes with JSON body:

{
  "error": "validation_error",
  "message": "Invalid request body",
  "details": [
    {
      "field": "email",
      "message": "Invalid email format"
    }
  ]
}
Status Description
400 Bad Request - Invalid parameters
401 Unauthorized - Invalid or missing API key
403 Forbidden - Insufficient permissions
404 Not Found - Resource doesn't exist
409 Conflict - The attempt conflicts with a pending revision, a completed session, or a changed form
429 Too Many Requests - Rate limit exceeded
500 Internal Server Error

A replayed payment is not an error. A verified payment already consumed by an earlier claim keeps the pending attempt held: the resume and status routes return HTTP 202 with the pending receipt and reason payment_already_used.

{
  "kind": "pending",
  "pendingId": "pnd_abc123",
  "inputRevision": 1,
  "reason": "payment_already_used",
  "payment": { "kind": "quote", "fieldId": "fld_pay01", "amountMinor": 2500, "currency": "usd", "revision": 1 },
  "errors": {}
}

Do not pay again. No second accepted Submission is created.

Webhooks Signature Verification

Verify webhook authenticity using the X-BuoyForms-Signature and X-BuoyForms-Timestamp headers:

const crypto = require('crypto');

function verifySignature(rawBody, signature, timestamp, secret) {
  const now = Math.floor(Date.now() / 1000);
  if (!timestamp || Math.abs(now - Number(timestamp)) > 300) return false;

  const received = signature?.startsWith('v1=')
    ? signature.slice(3)
    : '';
  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${timestamp}.${rawBody}`)
    .digest('hex');

  if (!/^[a-f0-9]{64}$/i.test(received)) return false;

  return crypto.timingSafeEqual(
    Buffer.from(received, 'hex'),
    Buffer.from(expected, 'hex')
  );
}

For framework-specific receivers, see Webhook Signing for Node.js, Python, Ruby, and Go examples.

SDK Support

Official SDKs coming soon:

  • JavaScript/TypeScript
  • Python
  • Ruby
  • Go

Changelog

  • 2026-10-19: Added Agentic Form Engine, Respondent Agent, Operator Triage, Analytics, and Automation Run/Approval API endpoints and scopes
  • 2025-11-27: Added rate limiting headers and documentation
  • 2025-11-20: Initial API release