Authorization header. Your API key encodes two pieces of information at once: the permissions granted to the key (read-only or read/write) and the environment the key targets (sandbox or production). There are no sessions or cookies — each request is independently authenticated.
Key types
Choose the right key type for each context. Using a key with more permissions than necessary is a security risk.Test vs live environments
The middle segment of every key —test or live — determines which environment your requests target.
- Test keys (
tybrite_sk_test_…,tybrite_pk_test_…) run against the sandbox environment. No real shipments are booked, no money moves, and all events carrylivemode: false. Use test keys throughout development and CI. - Live keys (
tybrite_sk_live_…,tybrite_pk_live_…) target the production environment. Requests create real shipments, charge real payment methods, and dispatch real couriers. Only use live keys once your integration is ready for production traffic.
Sending your API key
Pass your key as a Bearer token in theAuthorization header of every request. The examples below show how to do this with cURL and with the TypeScript SDK.