WP Manifestindependent plugin directory
manifest / developer / contact-form-7-rest-api

Contact Form 7 Rest API

Contact Form 7 endpoints for the WP REST API v2

★ 10stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/codebradley/contact-form-7-rest-api/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Deprecated:

Important Note: Endpoints are now included with the Contact Form 7 plugin as of version 4.7. I only recommend working with this code if you are using an older version of Contact Form 7.

Here's the changelog: https://contactform7.com/2017/03/03/contact-form-7-47/ Here's the code: https://github.com/ohze/wp-contact-form-7/blob/master/includes/rest-api.php


Contact Form 7 REST API Endpoints

Contact Form 7 endpoints for the WP REST API v2

Get All Forms:

GET /wp-json/wpcf7/v1/forms

Get Single Form:

GET /wp-json/wpcf7/v1/forms/(?P<id>[\d]+)

Create Form:

POST /wp-json/wpcf7/v1/forms

Update Form:

PUT /wp-json/wpcf7/v1/forms/(?P<id>[\d]+)
PATCH /wp-json/wpcf7/v1/forms/(?P<id>[\d]+)

Delete Form:

TODO