title: JMeter: How to use the RESTful API key for authorization of the next set of API
body: <p>I am creating a jmeter load test plan for RESTful API request. I need to use the dynamic API key generated in my first sampler SignIn API in the next set of API requests I am going to create. </p>
  
  <p>Can someone help out with how to pass the selected data parameters from response and input to the another api request in other required format for that post request.</p>
  
  <p>Response Header </p>
  
  <pre><code>WebxxxHeader: {"UserName":"xxxxx","UserID":1,"ApiKey":"ea9a3572-de75-4a85-848a-8fed874f2269","ValidFrom":"2015-06-05 05:54:35","ValidTo":"2015-06-12 05:54:35","UserRole":null,"Password":null,"DeviceToken":null,"DeviceType":null,"IsRetina":false,"UniqueId":null}
  </code></pre>
  
  <p>Header to be posted in the next set of APIs</p>
  
  <pre><code>WebxxxHeader: {"UserName":"xxxxx","ApiKey":"ea9a3572-de75-4a85-848a-8fed874f2269"}
  </code></pre>
  
  <p>One more issue here is I have to pass the user email in the header instead of UserName.</p>
  
  <p>Please share advanced JMeter blog references.</p>
  
  <p>Thanks in advance for your suggestions.</p>