Blog Home
Implementing the Blacksheep API: Integration Guide, Test Payments and the Playground

Harrison Dell
29 November 2026
9 mins
You build a Blacksheep API integration in a set order, test it with small live payments and the Playground, and check it against the API reference. There is no separate sandbox, so every test that moves money moves real money.
Key takeaways
- There is no separate test mode: the Playground and test payments run against the live API with real balances, rails and fees.
- Quote-only and read calls move no money, so they are the safe place to start.
- A quote token is valid for 15 seconds and can be used once, so a resent token does not pay twice.
How do you implement the Blacksheep API?
The live API has no separate test mode
Blacksheep has one API, at https://api.blacksheep.money, and there is no separate sandbox. Test transactions are real transactions: they use real balances, settle on real rails and incur real fees. Quote-only calls (quote.get and quote.getFees) and read calls move no money, so they are the safe place to start.
Plan your testing around that. Use small amounts, use destinations you control, and keep a note of every test transaction id. A small order also attracts the extra 1% fee under US$500 equivalent, and on-chain deposits carry the network fee, so a test is not free.
What is the Blacksheep API integration sequence?
Most integrations follow the same sequence, and each step builds on the one before it. The overview in the concepts documentation explains the model of accounts, balances, transactions, external accounts, quotes and webhooks.
- Create keys: in the dashboard under Settings, then Dev space, enter a name and reason and create an API key. You receive BSK_KEY_ID and BSK_SIGNING_KEY, a PKCS#8 DER private key encoded as standard base64. The signing key is shown once, so store it in a secrets manager straight away. If you lose it, revoke the key and create a new one.
- Sign requests: every public request carries an Ed25519 signature in the Bs-Key-Id, Bs-Timestamp, Bs-Nonce and Bs-Signature headers, plus a Content-Digest header when there is a body. There are no bearer tokens.
- Read balances: call account.balance.getMany to confirm that signing works and to see what you hold.
- Set up destinations: your own bank accounts and wallets are external accounts. Third parties are recipients, each with their own external accounts.
- Quote: quote.get prices a swap or withdrawal exactly, fees included, and returns a single-use token.
- Transfer: transaction.transfer executes what you quoted.
- Listen: register a webhook to receive transaction.created and transaction.updated events.
- Reconcile and go live: match every transaction to your own records, then raise volume.
Signing, in brief
Every endpoint is called with POST and a JSON body, and endpoints with no input are called with an empty body. The signing string joins the key id, timestamp, nonce, method, path and content digest with colons, and each variable-length field is preceded by its byte length. The signature is Ed25519 over those bytes, encoded in standard base64, not base64url.
Our article on signing API requests with Ed25519 in Node and Python gives complete examples, and the authentication page is the reference. The timestamp must be within 300 seconds of the server clock, and a nonce cannot be reused within 10 minutes. Failures return 401 with invalid_signature, stale_request or replay_detected.
Balances, recipients and external accounts
A balance read is the simplest authenticated call. Sign the path /v1/account.balance.getMany, send no body, and omit Content-Digest.
For your own destinations, add a bank account with account.external.bank.add, giving its type (for example AUD_NPP), account name, account number and, for AUD, the BSB as national_clearing_code. AUD payouts go to a bank account identified this way.
For third-party payouts, call account.recipient.create first. The name and street address are required, and PO box addresses are not accepted. Then call account.external.bank.add with the recipient_id. Without a recipient_id the bank account is added to your own account instead, which is the most common mistake to guard against. The recipients guide has the full request shapes.
Quotes and transfers
A quote names the amounts and, for a withdrawal, the destination. For an AUD payout, pass currency_out, destination as AUD_NPP and the external_account_id. To land an exact amount in the bank account, put it on currency_in with fixed_side set to in.
The response's computed block carries send, receive, receive_gross, fees, expires_at and a token. Submit computed.send as currency_out and the token as quote_token on transaction.transfer. The token is valid for 15 seconds and is single use. If the call fails with Quote expired or Quote invalid, quote again, show the new amounts and submit the new token. There is no client idempotency key, but a token funds only one transaction, so resending the same token is rejected and does not pay twice. The quotes documentation covers every field.
Webhooks
Register an HTTPS URL in the dashboard under Settings, then Dev space. The dashboard shows the Ed25519 public key. Each delivery carries webhook-id, webhook-timestamp and webhook-signature headers, and the signature covers the exact string of id, timestamp and raw body joined by full stops. Reject anything older than 300 seconds or with a bad signature.
Respond with a 2xx within 20 seconds, and put heavy work on a queue. Failed deliveries are retried with exponential backoff, so index events on webhook-id and ignore repeats. A 410 response disables the webhook. The webhook setup guide has a worked handler.
Reconciliation
Transaction states are PENDING, COMPLETED, FAILED and CANCELLED. Use transaction.get for one transaction and transaction.getMany to list, filtered by type, search or recipient_id, with a limit of up to 100. For on-chain deposits, external_reference holds the transaction hash. For recipient payouts, external_account_metadata snapshots the destination at the time of payout, and your metadata.description travels with the transaction. The description is the only metadata key accepted, so use it to carry your own invoice or payout reference. The transactions documentation explains the lifecycle.
If you act for your own customers
If you want to operate accounts on behalf of customers, the Partner API is off by default and is enabled per account after a short manual review. Read our explanation of how the Partner API works and the note on applying for partner access before you design around it.
How do you test a Blacksheep API integration with small live payments?
Work through the plan in order, and stop at the first surprise. Each test uses small live amounts.
- Signed read call: call account.balance.getMany. You are checking the signing code, the clock and the key, and no money moves.
- Signature failures: send one request with a deliberately wrong path to see invalid_signature, and resend an earlier nonce to see replay_detected. Neither moves money.
- Quote-only calls: run quote.get and quote.getFees for a swap and for an AUD payout. Show computed.receive and computed.fees in your own interface and check them against the pricing page.
- Quote left to expire: fetch a quote, wait more than 15 seconds and submit it. Expect Quote expired, then re-quote and confirm your code shows the new amounts rather than silently resubmitting. A failed submission executes nothing.
- Small swap: execute one small swap between two currencies you hold, and watch it move from PENDING to a terminal state. Then resubmit the same token and expect Quote invalid.
- Small AUD payout to your own account: add your own AUD bank account as an external account, quote a small withdrawal and execute it. Confirm the funds land and the fee matches the quote.
- Small payout to a test recipient you control: create a recipient with your own details, attach a bank account with the recipient_id, and pay it with a metadata.description. Check that external_account_metadata appears on the transaction.
- Small on-chain deposit: create a deposit wallet with account.external.web3.create (type evm or tvm), wait for it to appear in account.external.web3.getAll, and send a small amount of a supported token on a matching chain. Do not send unsupported tokens or native gas tokens, because they are not credited. The network fee is a fixed amount, so a very small deposit loses a large share of its value.
- Webhook delivery: confirm your endpoint receives transaction.created and transaction.updated, verifies the signature and rejects a tampered body.
- Duplicate handling: have your handler return a non-2xx response once so the delivery is retried, and confirm that the second copy of the same webhook-id changes nothing. Do not return 410, which disables the webhook.
Keep the tests small, but not so small that you hit the under US$500 equivalent fee in every test unless that is the case you want to see. The withdraw to a bank account guide and the deposit crypto guide cover the flows in tests 6 and 8.
How do you use the Blacksheep Playground?
The Playground lets you quote and execute a swap against the live API, signed in your browser. It asks for your dev key, which you paste into the key panel, and every step shows the exact signed request and response alongside.
There are four steps on the page: load your balances, build a swap, get a quote and execute. Loading balances and getting a quote are read-only. The execute step is not, so it runs a real swap with real fees. The Playground is useful for learning the payload shapes and comparing them with what your own code sends, and it is a good place to copy a correct request from.
Use a key that is named for testing, keep the amounts small, and revoke the key when you finish if it is not needed.
How do you go live with the Blacksheep API?
Because there is no separate environment, going live is a matter of raising amounts and volume with the same code. Before you do, check that keys sit in a secrets store, your clock is synchronised, tokens are never reused, webhook handling is idempotent and every transaction reconciles to your own records. Confirm your fees against the pricing page and decide how you will prefund your balance, as set out in our stablecoins for PSPs guide.
How do I get help with my Blacksheep API integration?
For help with your integration, contact us, or create a business account and generate your first key. For Partner API access, email support@blacksheep.money.
Frequently asked questions
Does the Blacksheep API have a sandbox?
Blacksheep has a single API at https://api.blacksheep.money and no separate sandbox. The Playground and your test payments run against the live API, so test transactions are real and incur real fees.
Is the Playground safe to use for testing?
Loading balances and getting a quote move no money. Executing a swap in the Playground is a live transaction, so use small amounts and a key you control.
What happens if my quote expires?
A quote token is valid for 15 seconds and can be used once. If it has expired or was already used, transaction.transfer fails with Quote expired or Quote invalid. Request a new quote, show the new amounts and submit the new token.
How do I avoid paying twice if my request is retried?
There is no client idempotency key, but a quote token funds only one transaction, so a resend with the same token is rejected. Each successful call returns a transaction id, so reconcile against that.
How do I test webhooks?
Register an HTTPS URL, trigger a small test transaction and check the delivery logs in the dashboard. To test duplicates, make your handler fail once so the delivery is retried, then confirm that a repeated webhook-id changes nothing.
Disclaimer
The information in this article is general in nature and does not constitute financial advice or a recommendation to buy, sell or hold digital assets. Fees shown are indicative and were accurate at the time of publication; final fees are displayed at the time of your transaction. Digital assets are volatile and you may lose some or all of the value you hold.
Blacksheep Operations Pty Ltd (ABN 16 674 111 392) is registered with AUSTRAC as a Digital Currency Exchange provider (DCE100860053-001) and as an Independent Remittance Dealer. Blacksheep is also registered on the New Zealand Financial Services Provider Register.







