---
title: The API
description: REST over HTTPS, JSON in and out, with v1 and v2 endpoints side by side.
---

REST over HTTPS, JSON in and out. Two eras of endpoint live here: v1 under
`/api/v1` and v2 under `/api/v2`. Both work, and most integrations use a mix,
which is why they are documented together.

Every endpoint page under API is generated from the published document for its
version, so what you read matches what we serve.

> **Not the place to start something new**
>
> These endpoints are supported and are not going away while partners are on
> them. But v3 is where new work belongs, and the differences are not cosmetic.
> See [what changed since v1 and v2](/v3/questions/v3-differences).

## Conventions

- **Amounts are numbers** — JSON numbers, not strings. This is the one convention v3 reverses: it sends every amount as a decimal string, because a float cannot hold 8 crypto decimals without rounding.
- **Currencies are our own codes** — Short codes like BTC and ETH_ARB, ours to define. The full set is on currencies.
- **Errors are almost always a 400** — The status tells you little. The code in the body is what you branch on. See the error catalogue.

## Where to go

- **[Base URLs](https://partner.btcdirect.eu/v2/api/base-urls.md)** for the two hosts and the two path prefixes.
- **[Authentication](https://partner.btcdirect.eu/v2/api/authentication.md)** for the two credentials and how to
  get each one.
- **[Error catalogue](https://partner.btcdirect.eu/v2/api/errors.md)** for the envelope and the codes.
