Fill in the method and URL, add query parameters and headers as rows, choose a body type and an auth scheme, and copy the generated code for the client you use. Rows can be toggled off with their checkbox without deleting them, which is handy when comparing a request with and without a header.

  • Body: JSON (validated, with a formatter button), form URL-encoded fields, multipart form fields (write @path/to/file as a value to attach a file), or raw text with your own Content-Type.
  • Auth: Bearer token, Basic username/password, or an API key header with a custom name.
  • Output: cURL, JavaScript fetch, Axios, Python requests, Go net/http, PHP cURL, HTTPie and wget.

The Content-Type header is added automatically for JSON and form bodies unless you set your own. GET and HEAD requests never get a body. This page only generates code and does not send the request; nothing you type, including tokens, leaves your browser.