• Resolved Kuldip Chaudhary

    (@kuldipchaudhary)


    Hello Support Team,

    We are attempting to integrate WPForms as an overlay inside a video, which should trigger the form display at a specific video timestamp.

    To fetch the available public forms, we used the WPForms REST API endpoint:
    /wp-json/wpforms/v1/forms

    However, on different sites, this endpoint returns the following error response:

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

    Could you please help us with above issue?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @kuldipchaudhary,

    Thanks for reaching out!

    Currently, WPForms does not have a built-in feature to enable the REST API. I’ve made a note of your feature request, and we’ll keep it on our radar for future roadmap planning.

    In the meantime, if you’re comfortable with custom code, this functionality can be achieved using the snippet available here: https://a.supportally.com/n/GQIrk2.

    After implementing the code, a custom endpoint will be available at:
    https://your-site.com/wp-json/wp/v1/wpforms/{form_id}/submissions

    Please be sure to replace {form_id} with the actual ID of the WPForms form you want to retrieve submissions from.

    Please note that customizations like this are outside the scope of our official support. If you’re interested in custom development, we highly recommend posting your customization job here.

    Thank you for the suggestion!

    Thread Starter Kuldip Chaudhary

    (@kuldipchaudhary)

    I want to implement a endpoint which will return all public wpforms with its id, title, and description (optional)

    Which can be achieved from the /wp-json/wpforms/v1/forms endpoint implemented in the WPForms plugin, but sometimes it returns a 404 error, which indicates that the endpoint is not found, but when I check the WPForms plugin code, I can see the RestApi a class that registers the above endpoint.

    Looks like this endpoint is only available for some specific pages.

    Thanks

    Ref: Check file path: /wpforms-lite/src/Integrations/Gutenberg/RestApi.php

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

    (@rsouzaam)

    Hi @kuldipchaudhary,

    Thanks for getting back to me.

    WPForms uses REST API for some integrations, such as with the Gutenberg block editor (/wpforms-lite/src/Integrations/Gutenberg/RestApi.php) and Elementor (/wpforms-lite/src/Integrations/Elementor/RestApi.php).

    However, by default, WPForms doesn’t have a REST API enabled for custom integrations. As a workaround, you can use custom code like the example on https://a.supportally.com/n/GQIrk2 to use WPForms with the REST API.

    Please note that customizations like this are outside the scope of our official support. If you’re interested in custom development, we highly recommend posting your customization job here.

    However, I do agree this feature would be super helpful. I’ve made a note of the feature request and we’ll keep it on our radar as we plan out our roadmap for the future.

    Thank you!

    Thread Starter Kuldip Chaudhary

    (@kuldipchaudhary)

    Thank you @rsouzaam for instant support, the reference link will be helpful to implement custom solution. All my doubts are resolved 🙂

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @kuldipchaudhary,

    You’re very welcome! I’m so glad the content was helpful and I hope it makes setting up your custom REST API with WPForms much easier for you.

    It looks like you’ve marked this post as resolved. If you’d like more help with using WPForms Lite, please feel free to reach out.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘“/wp-json/wpforms/v1/forms” endpoint not exist’ is closed to new replies.