Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contact form 7 API does not work - No route was found matching the URL and request method. #148

Open
mac10046 opened this issue Jan 4, 2025 · 0 comments

Comments

@mac10046
Copy link

mac10046 commented Jan 4, 2025

I have added contact form 7 plugin to add contact us page in the UI and tried hitting this CURL using POSTMAN in many different ways.

Referring to this POST for sending using the API
https://medium.com/@mahesh_joshi/wordpress-contact-form-7-rest-api-endpoints-bf45907b571c


curl --location 'https://DOMAIN.com/wp-json/contact-form-7/v1/contact-forms/948e6c6/feedback' \
--form 'your-name="MY NAME"' \
--form 'your-email="[email protected]"' \
--form 'your-subject="Testing"' \
--form 'your-message="hope its works"'

but I keep getting the same error

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

Looks like some plugin code is blocking it, tried deactivating all plugins except contact form 7 but yet it didnt work out
Even commented out the whole htaccess file code to check but yet no luck

@mac10046 mac10046 changed the title contact form 7 API does work contact form 7 API does not work - No route was found matching the URL and request method. Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant