title: Using Contact Form 7 via WP REST API
body: <p>Having little access to the server on this external site, I have used WordPress and the WP REST API v2 to pull in content that is, of course, managed on WordPress. Works great! </p>
  
  <p>I have been able to post Contact Form 7 data from this external site to this WordPress site and it does send an email, but the form has no validation and on the post-it returns this error.  </p>
  
  <pre><code>{
      "code": "rest_cannot_edit",
      "message": "Sorry, you are not allowed to edit this post.",
      "data": {
      "status": 401
  }
  } 
  </code></pre>
  
  <p>It is posting to the page <a href="https://www.flambang.com/wp-json/wp/v2/pages/1666?_=1498600326410#wpcf7-f11791-o1" rel="nofollow noreferrer">https://www.flambang.com/wp-json/wp/v2/pages/1666?_=1498600326410#wpcf7-f11791-o1</a> and it is strange that it even works - meaning that it sends the email and adds contact data to the DB.</p>
  
  <p>Has anyone used Contact Form 7 with data that is delivered via JSON via and the WP REST API? Are there other endpoints I can use?</p>
  
  <p>thanks,</p>
  
  <p>Paul</p>