Title: Submitting forms via REST api
Last modified: March 15, 2018

---

# Submitting forms via REST api

 *  [kekkorider](https://wordpress.org/support/users/kekkorider/)
 * (@kekkorider)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/submitting-forms-via-rest-api/)
 * I was trying to submit forms using the WordPress REST api, but it gives ne a 
   validation error with required fields even if I provide them with the POST request.
 * Here’s a screenshot from Insomnia client: [https://www.dropbox.com/s/121vzo85wr34dfh/insomnia.png?dl=0](https://www.dropbox.com/s/121vzo85wr34dfh/insomnia.png?dl=0)
 * What am I doing wrong?

Viewing 1 replies (of 1 total)

 *  [gschier](https://wordpress.org/support/users/gschier/)
 * (@gschier)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/submitting-forms-via-rest-api/#post-10135078)
 * Hey there! I know nothing about the WordPress API, but I’m the Insomnia developer.
 * You have not submitted any form data with the request. The Query tab is for adding
   query parameters to the URL. What you want to do instead is change the Body type
   to Multipart Form or Form URL Encoded (I’m not sure which one WordPress requires).
   Then, enter the data there instead.
 * I hope this helps 🙂
 * ~ Gregory

Viewing 1 replies (of 1 total)

The topic ‘Submitting forms via REST api’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [submit](https://wordpress.org/support/topic-tag/submit/)

 * 1 reply
 * 2 participants
 * Last reply from: [gschier](https://wordpress.org/support/users/gschier/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/submitting-forms-via-rest-api/#post-10135078)
 * Status: not resolved