secret on product calls — you exchange it once for a token, then send the token.
Why the API host isn’t
xbridge.co.tz — x-bridge is operated by Reli Technology Limited and runs on its banking infrastructure, so the API is served from services.finance.reli.co.tz. Seeing the Reli name alongside x-bridge is expected — it’s the same platform, and this is the correct host for your x-bridge keys.Get a token
Response
Tokens expire — handle 401 in one place
Tokens last about 1 hour. The production-proven pattern is: on a401, clear the cached token, generate a fresh one, and retry the request once.
expiresAt); don’t call /generate-token on every request.
Two services, two keys
Bridge has two token-issuing services. Each has its ownkeyId/secret and its own base URL, but the same Bearer model.
Generate a token from each service with that service’s key. See the Collections recipe for the gateway flow.
Environments
Your key is bound to anenvironment (sandbox or production), returned in the token response. Start in sandbox; move to production after KYB and approval. See Onboarding.