Quickstart
This walkthrough uses the corporate platform API after credential activation. You need curl and jq.
1. Set your credentials
You get a client id and secret from your one-time credentials link. Keep the secret out of code and chat.
export LIQUID_CLIENT_ID=api-your-org
# Inject LIQUID_CLIENT_SECRET from the approved secret manager.
export LIQUID_API=https://api.liquid.bridgeintelligence.cloud
export LIQUID_TOKEN_URL=https://id.liquid.bridgeintelligence.cloud/realms/liquid/protocol/openid-connect/token
2. Get a token
Tokens last 5 minutes. Get a new one when it runs out.
TOKEN=$(curl -s "$LIQUID_TOKEN_URL" \
-d grant_type=client_credentials \
-d client_id="$LIQUID_CLIENT_ID" \
--data-urlencode client_secret="$LIQUID_CLIENT_SECRET" | jq -r .access_token)
3. Check who you are
curl -s "$LIQUID_API/v1/me" -H "authorization: Bearer $TOKEN" | jq
You see your organisation or bank and your role. Every call acts as this one role, and only sees your own records.
4. Read your position
A company:
ORG=$(curl -s "$LIQUID_API/v1/me" -H "authorization: Bearer $TOKEN" | jq -r .orgId)
curl -s "$LIQUID_API/v1/orgs/$ORG/dashboard" -H "authorization: Bearer $TOKEN" | jq
A bank: GET /v1/bank/clients and GET /v1/bank/held. SBP: GET /v1/network.
5. Prepare a payment (companies)
Pick one of your counterparties and bank accounts:
curl -s "$LIQUID_API/v1/orgs/$ORG/counterparties" -H "authorization: Bearer $TOKEN" | jq '.[] | {id, name}'
curl -s "$LIQUID_API/v1/orgs/$ORG/accounts" -H "authorization: Bearer $TOKEN" | jq '.[] | {id, bank, iban}'
curl -s "$LIQUID_API/v1/payments" -H "authorization: Bearer $TOKEN" -H 'content-type: application/json' -H 'Idempotency-Key: synthetic-invoice-1042' \
-d '{"counterpartyId":"…","connectionId":"…","amount":250000,"note":"Invoice 1042"}' | jq
The documented platform sandbox can create two requests if you repeat a payment. After an uncertain reply, query the payment list and reconcile the original request before any retry. A participant trial uses a different draft reference.
Your API client can prepare a payment. A checker and an approver at your company approve it in the LIQUID app. Machines never approve their own payments.
6. Watch it move
Stream what happens, step by step: your bank's approval, the ISO 20022 test instruction, the simulated settlement decision, and the check of every record.
curl -sN "$LIQUID_API/v1/engine/stream" -H "authorization: Bearer $TOKEN"
Each line has a plain sentence and, where there is one, a link to the proof on the shared record.