Skip to content
Components

API Key Authentication

API Key token authentication sends a token in either a header or query parameter of each API request.

E.g., Headers: X-StorageApi-Token:your_token

This method is available through UI. You can select the Api Key Auth method and fill in the token.

Api Key

  • Key - arbitrary name of the header or query parameter key, e.g., X-StorageApi-Token
  • Token - the actual token value
  • Add to - where to add the token, either to the headers or query parameters

In the underlying JSON, the API Key is implemented as follows:

Place your token into the config.#__AUTH_TOKEN parameter. It is then referenced in the header or query parameter via the attr function.

Header section

{
"api": {
"...": "...",
"http": {
"headers": {
"X-StorageApi-Token": {
"attr": "#__AUTH_TOKEN"
}
}
}
},
"config": {
"#__AUTH_TOKEN": "secret",
"jobs": ["..."]
}
}

Query section

{
"api": {
"...": "...",
"http": {
"defaultOptions": {
"params": {
"X-StorageApi-Token": {
"attr": "#__AUTH_TOKEN"
}
}
}
}
},
"config": {
"#__AUTH_TOKEN": "secret",
"jobs": ["..."]
}
}
Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.