Skip to content
Bare BitcoinDevelopers

Search documentation

↑ ↓ Select · Enter Open · Escape Close

barebitcoin.no ↗
Menu
View Markdown

Quickstart

The production base URL is https://api.bb.no.

Fetch the current price

Public market data does not require credentials.

Shell
curl --fail-with-body 'https://api.bb.no/v1/price/nok'

See BTC/NOK prices for the response fields and the optional NOK amount parameter.

Create an API key

Sign in and open API keys. Create a key for this integration. Enable trading or withdrawal permissions only if your integration needs them. Keep the key and secret outside source control.

Read your accounts

Set BB_API_KEY in your environment to the complete key, including its bb/public/ prefix. Listing accounts requires no nonce or signature.

Shell
curl --fail-with-body 'https://api.bb.no/v1/user/bitcoin-accounts' \
  -H "x-bb-api-key: $BB_API_KEY"

The response contains an array of BitcoinAccount objects. Use the account ID when directing a transaction to a specific account.

Next steps

Read API keys and signing before submitting orders or withdrawals. For an integration acting on behalf of other users, see OAuth. To let an AI assistant read your account, see the MCP server.