---
title: GET /deployment
---

# `GET /deployment`

Get deployment posture

Which posture the gateway runs (prod or testnet) and the build it serves; drives the testnet banner.

Money, price, rate and count fields cross the wire as decimal strings; units are shown beside each field ([Wire encoding](/api/wire-encoding)). Group: [System](/api/reference/system/).

**Auth:** none (public)

**Effect:** `read`: reads only

## Request

```bash [curl]
curl -fsS "$HB/deployment"
```

```python [Python]
import os

import requests

HB = os.environ.get("HB", "https://testnet.hardbasis.com")

resp = requests.get(
    f"{HB}/deployment",
)
resp.raise_for_status()
print(resp.json())
```

```ts [TypeScript]
const HB = process.env.HB ?? "https://testnet.hardbasis.com";

const res = await fetch(`${HB}/deployment`, {
  method: "GET",
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());
```

## Responses

- **200**: OK
  - <span id="res-200-deployment"></span>`deployment` · enum(`prod`, `testnet`) · required
  - <span id="res-200-buildSha"></span>`buildSha` · string \| null · optional

Example `200` response:

```json
{
  "deployment": "prod",
  "buildSha": "string"
}
```
