# API overview

Bare Bitcoin public REST API. Production base URL: https://api.bb.no

## Bitcoin transfers

Deposit destinations, invoices, and withdrawals.

- [Deposit destinations](https://barebitcoin.no/developers/api/transfers/deposit-destinations): GET /v1/deposit-destinations/bitcoin
- [Create Lightning invoice](https://barebitcoin.no/developers/api/transfers/create-lightning-invoice): POST /v1/deposit-destinations/bitcoin/invoice
- [Get Lightning invoice](https://barebitcoin.no/developers/api/transfers/get-lightning-invoice): GET /v1/deposit-destinations/bitcoin/invoice/{id}
- [Initiate withdrawal](https://barebitcoin.no/developers/api/transfers/initiate-withdrawal): POST /v1/withdrawals/bitcoin
- [Get withdrawal](https://barebitcoin.no/developers/api/transfers/get-withdrawal): GET /v1/withdrawals/bitcoin/{withdrawalId}

## Market data

Public price and volume data. No authentication required.

- [BTC/NOK prices](https://barebitcoin.no/developers/api/market-data/price): GET /v1/price/nok
- [Volume statistics](https://barebitcoin.no/developers/api/market-data/volume): GET /v1/volume
- [Historical volume](https://barebitcoin.no/developers/api/market-data/historical-volume): GET /v1/volume/historic

## Orders

Create orders and manage open orders.

- [Open orders](https://barebitcoin.no/developers/api/orders/open-orders): GET /v1/orders
- [Create an order](https://barebitcoin.no/developers/api/orders/create-order): POST /v1/orders
- [Cancel an order](https://barebitcoin.no/developers/api/orders/cancel-order): DELETE /v1/orders/{orderId}

## Accounts and access

Balances and application consent.

- [List bitcoin accounts](https://barebitcoin.no/developers/api/accounts/bitcoin-accounts): GET /v1/user/bitcoin-accounts
- [Fiat account](https://barebitcoin.no/developers/api/accounts/fiat-account): GET /v1/user/fiat-account
- [Revoke consent](https://barebitcoin.no/developers/api/accounts/revoke-consent): DELETE /v1/user/applications/consent/{clientId}

## Tax

Balances and transactions for tax reporting.

- [Tax balances](https://barebitcoin.no/developers/api/tax/balances): GET /v1/tax/balance
- [Tax transactions](https://barebitcoin.no/developers/api/tax/transactions): GET /v1/tax/transactions

Source: https://barebitcoin.no/developers
