Skip to content
Reallyusefulplugins.com Docs

API Documentation

Updated 17 October 2026

API Response

Overview

Response for BitForms lets an automation service send a response back to a submitted form. This guide explains the required and optional parameters, provides JSON examples, and shows how to configure an automation workflow.

How form submission works

When a form is submitted, the webhook payload includes a return URL, session_id, and form_id. Your automation uses the return URL as the destination for an HTTP POST request and includes the identifiers and message data in the JSON payload.

Required parameters

Include these parameters in the POST payload:

ParameterDescriptionRequired
session_idUnique identifier for the submitted session.Yes
form_idUnique identifier for the form.Yes
bodyMessage body. Include it even when its display is disabled.Yes
body_displaySet to “yes” to show the body, or “no” to hide it and show the default message.Yes

Example 1: Minimum JSON response

{
  "session_id": "example_session_id",
  "form_id": "7",
  "body_display": "yes",
  "body": "Your Body Text Here"
}

Replace the example session and form IDs with the values supplied by the form submission. The example above also removes the trailing comma found in the original example so the JSON is valid.

Optional parameters

Add the following parameters to control links, images, PDFs, and copy functionality:

ParameterDefaultDescription
link_urlNot setURL to use for a clickable link.
custom_link_textNot setOptional label replacing the default “Visit Link” text.
copy_button“no”Set to “yes” to show a button that copies the message body.
image_urlNot setImage information; the original documentation describes an object containing an html property.
pdf_urlNot setURL of the PDF to display or link to.
has_link“no”Set to “yes” to display a link.
has_image“no”Set to “yes” to display an image.
has_pdf“no”Set to “yes” to display a PDF link or embedded PDF.

Example 2: Display a PDF

{
  "session_id": "example_session_id",
  "form_id": "7",
  "body_display": "no",
  "pdf_url": "https://example.com/sample.pdf",
  "has_pdf": "yes"
}

This example hides the body and enables a PDF display. The source example omits body even though the required-parameters section says it must be sent. For an actual integration, include a body field as well.

Example 3: Display a link with custom text

{
  "session_id": "example_session_id",
  "form_id": "7",
  "body_display": "no",
  "link_url": "https://example.com/sample.jpg",
  "custom_link_text": "Click here to view image",
  "has_link": "yes"
}

This enables a link with custom text while hiding the body. As above, include body in production requests because the required-parameters section specifies it.

Configure your automation

You can use FlowMattic or another automation tool capable of sending an HTTP POST request. Although the interface differs between platforms, the data being sent is the same.

response for api guide 1
  1. Create an HTTP POST action in your automation.
  2. Map the return URL received from the form submission to the request endpoint.
  3. Choose a JSON request body and map the required parameters.
  4. Map session_id from the initial webhook payload (for example, responsefsf_67559df047c388.08927290).
  5. Map form_id from the same submission.
  6. Supply a body message even when setting body_display to no.
  7. Add optional parameters as needed, then test with a real form submission.

Example response endpoint

https://domain.com/wp-json/responsefsf/v1/receive-response

The URL above is illustrative. Use the return URL supplied in the webhook payload rather than hard-coding the example domain.

Implementation notes

The JSON examples show the parameter names and sample values from the documentation. The original page does not specify authentication, status codes, or the exact structure of the image object; confirm those details within your installation when needed.

Was this helpful?

Still stuck? Open a support ticket