The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Formidable Forms API - Forbidden - but works fine in POSTMAN
Hello:I've been trying to get the formidable forms API to work. I've done the following:
- Installed/Activated the plugin with the new token
- Ran the test in Postman: Successful - 200 Response
- Ran a test using FME httpcaller: FailedĀ - I get the message:
- Received HTTP response header: 'HTTP/1.1 403 Forbidden' in FME and
- {"code":"rest_forbidden_context","message":"Sorry, you are not allowed to view entries","data":{"status":403}} in the _response_body
Any ideas where I can start troubleshooting? I know the API is working since Postman works.
December 14, 2018 at 1:06 am
Install the Formidable logging plugin. It provides details about the communication between the API and remote system, as well as other form actions. https://formidableforms.com/downloads/logs/
The logging plugin helped me solve a tough API failure. Turns out a date/time field was failing validation on the remote end because the API was sending empty data for the field. The field was definitely populated on the sending side though.
Normally, when I set up APIs, I use the field key as the value in the key/value pair. In this case, the field key wasn't working for the date/time field. As soon as I switched it to the field ID, the API worked. I suspect this may be a bug in the API, but I haven't had the time to research it further and since there's an easy work around, I didn't feel rushed to report it.
API issues are hard to diagnose, but the logging plugin helps tremendously. Good luck with this.
December 28, 2018 at 9:02 am
Try to change your Permalink to custom
Discussion closed.