Response Block

Response block sends response when request is sent to API endpoint. It consists of status code like 200, 404 etc and data if you want to send any data with the response. Data is sent in the form of JSON.

NOTE: Every endpoint must end with a response block.

# How to create a response block

  1. Drag "Response" block under “Control Blocks” in block picker.
  2. Select appropriate status code
  3. To add data press "Add data" and enter name of the key and value
  4. To use variable, put variable name in double curly braces. Eg:
  5. {{variable_name}}