NAV Navbar
Logo
cURL PHP Javascript

Introduction

Welcome to the Formidable Forms API official documentation! The Formidable Forms API is fully integrated with the WordPress REST API. This allows Formidable data to be created, read, updated, and deleted using requests in JSON format and using WordPress REST API Authentication methods and standard HTTP verbs which are understood by most HTTP clients.

Requirements

To use the latest version of the REST API you must be using:

Download and install

  1. Download the latest version of the Formidable API add-on.
  2. In your WordPress admin, go to ‘Plugins’ → ‘Add New’ and click the ‘Upload Plugin’ button at the top of the page.
  3. Upload the zip file you just downloaded in step two. Once the plugin is installed, click ‘Activate Plugin’ or go to the ‘Plugins’ page, find ‘Formidable API’ and click ‘Activate’.

HTTP Methods

GET

Make a GET request to retrieve data. GET requests will never cause an update or change to your data because they’re safe and idempotent.

POST

Use a POST request to create new entries, forms, Views, or fields. POST can also be used to update an entry, form, View, or field.

PATCH

Make a PATCH request to update an entry, form, View, or field. With PATCH requests, you only need to provide the data you want to change.

PUT

Use a PUT request to create or update an entry, form, View, or field.

DELETE

Make a DELETE request to delete an entry, form, View, or field.

Request/Response Format

The default response format is JSON. Requests with a message-body use plain JSON to set or update resource attributes. Successful requests will return a 200 OK HTTP status.

Errors

Occasionally you might encounter errors when accessing the REST API. There are four possible types:

Error Code Error Type
400 Bad Request Invalid request, e.g. using an unsupported HTTP method
401 Unauthorized Authentication or permission error, e.g. incorrect API keys
403 Forbidden Your API key didn’t log you in. If you are using Basic Authentication, your server may not be recognizing your authorization headers.
404 Not Found Requests to resources that don’t exist or are missing
500 Internal Server Error Server error

WP REST API error example:

{
  "code": "rest_no_route",
  "message": "No route was found matching the URL and request method",
  "data": {
    "status": 404
  }
}

Errors return both an appropriate HTTP status code and response object which contains a code, message and data attribute.

Parameters

Almost all endpoints accept optional parameters which can be passed as a HTTP query string parameter, e.g. GET /entries?search=Test. All parameters are documented along each endpoint.

This documentation is for the Formidable Forms REST API v1, which is deprecated since Formidable Forms -. Please use the latest REST API version.