JWT Tokens

Authenticate API requests by generating a short‑lived JSON Web Token signed with your API key.

When to use

Use JWTs when you don't want to expose your API key to the caller (e.g. from a browser or an untrusted runtime). Generate tokens server‑side and forward them to clients.

Token payload

Generate a signed JWT with payload {"iat": CURRENT_UNIX_TIMESTAMP} using HS256 and your WB_API_KEY as the secret.

Make authenticated requests

Send the signed token as a Bearer token in the Authorization header.

Python
Ruby