Skip to main content
Most users should not implement signing manually. Use the CLI, TypeScript SDK, Go SDK, or Python SDK — all of them handle JWT signing, key rotation, retries, and the error envelope for you.Read on only if you’re writing a custom client in a language without a Bron SDK, or if you need direct control over the JWT lifecycle.
API Key authentication allows you to securely access the Bron API using cryptographic signatures. This method uses JSON Web Tokens (JWT) to ensure both authentication and request integrity.
JSON Web Tokens (JWT) is an open standard for securely transmitting information between parties as a JSON object.A JWT consists of three parts separated by dots:Example of the JWT:

Bron JWT Structure

Step-by-Step Implementation

1

Prepare Your Credentials

  • Generate or upload your API Key in the Bron App and obtain your API Key ID
  • Save your private key securely
  • Use your API Key ID (kid) in the JWT header.
2

Create the Message String

Concatenate these values separated by newline (\n) characters:
Components:Example:
3

Generate SHA256 Hash

Compute SHA256 over the message string. In Node.js:
Store that hex string in the JWT payload under "message".
4

Sign the JWT

Create and sign the JWT using your private key

Examples

Request:
JWT Header:
JWT Payload
Signed JWT:
Authorization Header: