Table of Contents
You can also submit entries to the Everest Forms plugin on your site via RestAPI. Follow the steps below to send an entry to the Everest Forms plugin via Postman with the help of RestAPI.
Generating Everest Forms RestAPI key #
- Go to the following location and enable RestAPI.
Everest Forms > Settings > Misc
- Click on the Generate button to generate a RestAPI key. You can regenerate the API key by clicking on the regenerate button.
- Copy this API to a clipboard.
Submitting entry from Postman #
- Log in to Postman Web. (You can also use the application.)
- Open/create a Postman Workspace and create a new request.
- Choose HTTP.
- Set the HTTP method to “POST.”
- In the URL field, enter the webhook URL in the following format:
{your_site_url}/wp-json/everest-forms/v1/entry/save
For example: https://example.com/wp-json/everest-forms/v1/entry/save
- On the Authorization tab, you must enter the API key generated above.
- Auth Type: Choose API Key
- Key: Write ‘api-key’ as shown in the image below.
- Value: Enter the API key generated in the Everest Forms.
- Add to: Select ‘Header.’
- Go to the Body tab and choose raw.
- Enter the following JSON:
{
"form_fields": {
"LbH5NxasXM-2": "[email protected]",
"66FR384cge-3": "Follow @carsinnepal in instagram",
"yhGx3FOwr2-4": "Maximesdf sdfsdvero ad cumqu tw"
},
"id": 173
}
The field keys are the field ids. Please don’t put the # symbol.
id is the form ID (given in the form’s shortcode)
- In the above JSON data, enter the required values as per the form fields to send it as an entry.
- Click on the Send button.
- Now, go to Everest Forms > Entries, you will see this submitted as an entry.