Skip to content
↑↓ move↵ openesc close

Authorization

API Key

Send a fixed key in a header or in the query of the URL, with the exact fields and what Luvin sends.

1 min read

Use API Key when the API documentation says “send your key in the X-API-Key header” or “add ?api_key= to the URL”.

The Authorization tab with the API Key fields

Request GET https://httpbin.org/get, which echoes what it receives.

Type API Key, Name X-API-Key, Value k-123, Send in Header.

Luvin sends:

X-API-Key: k-123

httpbin echoes it in headers:

"X-Api-Key": "k-123"
Field What to write
Name The header or query parameter name, for example X-API-Key.
Value The key. A secret field: hidden, click the eye (Show) to see it.
Send in Header (default) or Query.
  • A header you wrote yourself in Headers with the same name as Name is kept as you wrote it.
  • With Query, the parameter is added to the URL.
  • With an empty Name, nothing is added.
  • It works in requests, in the collection and in a workflow. In the desktop app and in the browser alike.

Value is a secret. Typed as-is it is stored encrypted on your computer and not written to the request file. Write {{apiKey}} and keep the key in your environment to share the setup. See Secrets.