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 {"client_id": WB_CLIENT_ID, "iat": CURRENT_UNIX_TIMESTAMP} using HS256 and your WB_API_KEY as the secret.

Make authenticated requests

Send HTTP Basic auth with username WB_CLIENT_ID and password set to the signed token.

Python
Ruby