How requests authenticate
Every request uses two values:Authorization: Basic auth with your API key as the username, no password. Keys have the formatv1.{region}.xxxxx.x-account-id: identifies the end user’s linked account, for endpoints that act on a specific account’s data.
Encoding the Authorization header
The header value is base64 of{api_key}:, the key followed by a colon, since Basic auth expects a password half even when it is empty. curl -u "$STACKONE_API_KEY:" builds it for you. To encode it yourself:
- macOS / Linux
- Windows (PowerShell)
- Windows (Command Prompt)