Install
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/mrityunjoy-systems/wp-contact-form-api/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
How to Test
- Install the plugin in WordPress.
- Activate the plugin.
- Send a POST request to:
/wp-json/contact/v1/submit
Example using Postman:
- Method: POST
- Body (JSON):
{ "name": "Test User", "email": "test@example.com", "message": "Hello from API" }# WP Contact Form API
A WordPress plugin that accepts contact form data via REST API.
API Endpoint
POST request:
Example Body
{
"name": "John",
"email": "john@example.com",
"message": "Hello!"
}
{
"status": "success",
"message": "Form submitted successfully!"
}