Docs

Comprehensive guides and references for FiraForm.

Browse docs

Forms & Settings API

Create and manage FiraForm forms, settings, auto-reply, fields, and form stats over the REST API.

Authenticated endpoints for forms, their settings, auto-reply, fields, and stats.

All endpoints use https://a.firaform.com/api and a Sanctum bearer token. See the API Reference for authentication, roles, pagination, and error shapes.

List forms

GET /api/forms

Forms across all teams the caller belongs to.

Optional query parameter: team_id.

{
  "data": [
    {
      "uuid": "V1StGXR8_Z5jdHi6B-myT",
      "name": "Contact Form",
      "team": { "id": 3, "name": "Acme" },
      "is_active": true,
      "endpoint_url": "https://a.firaform.com/api/f/V1StGXR8_Z5jdHi6B-myT",
      "submissions_count": 42,
      "created_at": "2026-02-01T10:00:00.000000Z",
      "updated_at": "2026-02-02T10:00:00.000000Z",
      "permissions": {
        "update": true,
        "delete": true,
        "manage_integrations": true,
        "manage_submissions": true,
        "delete_submissions": true
      }
    }
  ],
  "meta": { "current_page": 1, "last_page": 1, "per_page": 15, "total": 1 }
}

team_id for a team the caller is not in returns 403.

GET /api/forms/{form_id}

Returns one form using the same shape. Form identifiers are 21-character Nanoids.

POST /api/forms

Owner, admin, or manager of the team. Uses the team owner’s plan limit. notification_email defaults to the caller’s email.

{ "team_id": 3, "name": "Support Form" }

Returns 201 with the form resource.

PATCH /api/forms/{form_id}

Owner, admin, or manager.

{ "name": "Renamed Form" }

DELETE /api/forms/{form_id}

Owner or admin. Deletes submissions and files through the models so storage usage is reduced.

{ "message": "Form and all its submissions have been deleted." }

Form settings

GET /api/forms/{form_id}/settings

Owner, admin, or manager. Returns data with:

name, is_active, success_redirect_url, error_redirect_url, notification_email, email_attach_files, captcha_enabled, captcha_type, captcha_token_lifetime.

PUT /api/forms/{form_id}/settings

Same fields. Booleans are real booleans.

{
  "name": "Contact Form",
  "is_active": true,
  "success_redirect_url": "https://example.com/thanks",
  "notification_email": "[email protected],[email protected]",
  "email_attach_files": false,
  "captcha_enabled": true
}

Rules:

  • Notification emails must belong to team members.
  • Redirect URLs and file attachments require the owner’s plan; otherwise 422.
  • Enabling CAPTCHA defaults captcha_type to slider and lifetime to 5.

Auto-reply

GET /api/forms/{form_id}/auto-reply

Returns data with:

auto_reply_enabled, auto_reply_email_field, auto_reply_to, auto_reply_subject, auto_reply_body, auto_reply_from_name.

PUT /api/forms/{form_id}/auto-reply

{
  "auto_reply_enabled": true,
  "auto_reply_email_field": "email",
  "auto_reply_to": "[email protected]",
  "auto_reply_subject": "Thanks for contacting us",
  "auto_reply_body": "We will get back to you shortly.",
  "auto_reply_from_name": "Acme Support"
}

Enabling auto-reply without the owner’s plan feature returns 422.

Fields

GET /api/forms/{form_id}/fields

Owner, admin, or manager. Returns merged metadata from submissions and configured fields.

{
  "data": {
    "fields": {
      "email": {
        "type": "email",
        "required": true,
        "is_locked": true,
        "rules": [],
        "submission_count": 42
      }
    }
  }
}

PUT /api/forms/{form_id}/fields/{field_name}

URL-encode field names with spaces (for example Full%20Name).

{
  "type": "number",
  "required": false,
  "rules": { "formula": "({price} * {qty}) OR ({alt_price} * {alt_qty})" }
}

Invalid formulas return 422.

DELETE /api/forms/{form_id}/fields/{field_name}

Locked fields (those with submission data) return 422.

{ "message": "Field deleted successfully." }

Form stats

GET /api/forms/{form_id}/stats

Any team member.

{
  "data": {
    "submissions": { "today": 5, "this_week": 22, "this_month": 90, "total": 1200 },
    "collections": {
      "live": [{ "currency": "USD", "total": 120.5, "payments": 4 }],
      "sandbox": [{ "currency": "MYR", "total": 25, "payments": 1 }]
    }
  }
}