Pachca icon

Pachca

Interact with Pachca API

Form → Create

AI-generated

Summary

Creates a Pachca modal form using a button press trigger ID. Define the form with the visual builder or provide blocks as JSON; optional fields configure submission metadata and button labels.

Inputs

  • Title (required) — Form title shown in the modal.
  • Type (required) — Opening method; the available choice is Modal.
  • Trigger ID (required) — Unique ID from a button press event, such as an outgoing webhook. It expires after 3 seconds, so use it promptly.
  • Additional Fields — Optionally set a Callback ID and private metadata sent to your application when the form is submitted, plus close and submit button text.
  • Builder Mode — Choose Visual Builder to configure blocks in the node, or JSON to supply the form blocks or full form JSON.
  • Form Blocks — In Visual Builder mode, add sortable blocks such as text inputs, choices, date or time pickers, file uploads, headers, markdown, and dividers. Configure block-specific labels, names, options, validation, and defaults as applicable.
  • Blocks (JSON) (required) — In JSON mode, paste an array of blocks or full form JSON. This field is shown instead of the visual builder fields.

Output shape

A single API response item containing the created form data.

The source pack shows this operation routes the request to the API and returns its response; the exact response fields are not specified here.

Examples

Example 1: Create a vacation request form

Set the title to “Vacation request,” use a fresh trigger ID from a button press webhook, and add text, date, or other blocks in the visual builder. Optionally set a callback ID or private metadata to identify the submission.

Links

Discussion