Build and send a single request

Set the method, URL, headers, body and variables, send it and save it.

In short

A single request is one call to an API, built from a method, a URL, headers, a body and sign-in. Send it and read the answer. Signed in, you can save it into a project so your team can run it again.

Before you start

Steps

  1. Choose the method the API expects.
  2. Enter the URL. Query values such as ?page=2 go at the end; the "Params" tab lists them one per row, and editing either updates the other.
  3. Add "Headers" such as Content-Type or Accept.
  4. Open "Auth" if the API needs a token, user name or API key.
  5. For POST, PUT or PATCH, open "Body" and enter the content.
  6. Press "Send".
  7. Signed in, save it into a project with a clear name, a test group and a description.

Result: the answer shows below; a saved request appears in the project, and every send is listed under your recent sends.

Check the environment A request can create, change or delete real data. Check the URL before you send a write method to a production system.

Headers and body

Variables

Write {{name}} in the URL, headers, body or authentication and it is replaced when you send. In the scratchpad a Variables row appears for each name so you can type a value for this send. A saved request takes values from the active environment first, then from its own setup variables. A secret value is hidden in results and exports. See /help/api-testing/variables.

Good to know

Keep tokens out of saved headers A token typed into a quick request stays in this browser tab and is not saved. A token typed into a saved request's header becomes project content that members may see. Use an authentication profile instead.

If something goes wrong

Related