Skip to main content
PUT
Configure an Instant Form

Authorizations

x-api-key
string
header
required

Your ps_ API key

Headers

x-whatsapp-number-id
string

Narrows an account-wide credential to one number (its id or instance id from GET /v1/numbers). Without it, an account-wide credential sees the whole workspace; a number-scoped key always sees only its own number.

Path Parameters

The link id (linked[].pageLinkId from GET /v1/lead-pages), not the Facebook Page id.

formId
string
required

Numeric Instant Form id (forms[].formId).

Body

application/json

key of the consent checkbox (consentCheckboxes[].key). Required for auto-send.

Example:

"whatsapp_optin"

autoSendEnabled
boolean
required

Message every new lead of the form automatically.

Example:

true

templateId
string | null
required

Official numbers: an APPROVED template of the number (templates[].id). Must be null on unofficial numbers.

Example:

null

freeText
string | null
required

Unofficial numbers: the message, with {{name}} placeholders. Must be null on official numbers.

Maximum string length: 4096
Example:

"Olá {{nome}}, recebemos seu pedido de orçamento!"

variableMap
object

Value of each template variable or placeholder: { "source": "field", "key": "<question key>" } or { "source": "static", "value": "..." }. Defaults to {}.

Example:
formName
string | null

Optional display label for the form.

Maximum string length: 255
Example:

"Orçamento — Outubro"

Response

Configuration saved