Title: Authenticate before posting
Last modified: June 11, 2018

---

# Authenticate before posting

 *  [eric3d](https://wordpress.org/support/users/eric3d/)
 * (@eric3d)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/authenticate-before-posting/)
 * I need to authenticate with the API and receive a token before I can post data.
   Not sure how I can do this with this plugin. The process is:
 * Step 1: POST login credentials
    – body is json containing username and password(
   hard coded)
 * Step 2: Receive response
    – response includes token
 * Step 3: POST form data
    – header includes token received in step 2 – body is 
   json formatted form data
 * I’m looking for documentation on how to get the response and integrate it into
   a second POST. Thanks.

The topic ‘Authenticate before posting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cf7-to-api.svg)
 * [Contact form 7 TO API](https://wordpress.org/plugins/cf7-to-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-to-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-to-api/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-to-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-to-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-to-api/reviews/)

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [multi step](https://wordpress.org/support/topic-tag/multi-step/)

 * 0 replies
 * 1 participant
 * Last reply from: [eric3d](https://wordpress.org/support/users/eric3d/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/authenticate-before-posting/)
 * Status: not resolved