Sign-in and tokens
Machines sign in with OAuth 2.0 client credentials. People sign in to the LIQUID app with a password and a second factor; this page is about machines.
Your client
Each bank, SBP and each company gets its own client. A client acts as one role in one organisation, so it sees and does exactly what that role may.
| You are | Typical role |
|---|---|
| A bank | Treasury (read your position) or operations maker |
| SBP | SBP viewer (approved oversight scope) |
| A company | Finance maker (prepare payments) or viewer |
Get a token
curl -s https://id.liquid.bridgeintelligence.cloud/realms/liquid/protocol/openid-connect/token \
-d grant_type=client_credentials -d client_id=$LIQUID_CLIENT_ID --data-urlencode client_secret=$LIQUID_CLIENT_SECRET
The answer has access_token and expires_in (300 seconds). Send it as authorization: Bearer <token>. Reuse it until it expires; don't ask for a new token on every call.
The token's audience is liquid-api. A token for anything else is refused.
Keep the secret safe
- Keep it in a secret store, never in code, a browser or chat.
- If it may have leaked, ask the issuer to revoke the client secret, inspect recent use and confirm how already issued access tokens expire or are invalidated.
Mutual TLS (optional)
We can issue your client a certificate from LIQUID's sandbox client CA. Present it on every call and the request log records the verified certificate. For a pilot, obtain the agreed client-authentication policy and verify certificate binding and refusal of an unbound token on the assigned gateway.