---
search:
  tags:
    - relay-zones
    - POST
seo:
  description: >-
    Creates a relay zone with its relays and starts their deploy as a… Reference
    for the POST /api/v1/relay-zones endpoint in the TimescaleDB Enterprise API.
sidebar:
  label: Create a relay zone
  badge: POST
title: Create a relay zone
type: openapi-operation
---
Creates a relay zone with its relays and starts their deploy as a tracked workflow. TSE_PUBLIC_URL must use a DNS name. Rejected with 409 when a relay does not resolve the host name of the console, does not reach it, or does not trust its certificate.

`POST /api/v1/relay-zones`

**Request body** (`application/json`, required)

- `address` (string, required) — The IPv4 address of the zone: a free address in a subnet of a network interface on each relay, outside the mesh subnet. The relays hold it with keepalived, which uses its last octet as the VRRP router ID.
- `name` (string, required) — The name of the zone.
- `server_ids` (string[], required) — The relays: enrolled free servers that reach the console directly and that the servers of the zone reach.

Request body example:

```json
{
  "address": "string",
  "name": "string",
  "server_ids": [
    "string"
  ]
}
```

**Responses**

- `202` — Accepted
- `default` — Error

Response example, 202:

```json
{
  "id": "string",
  "workflow_id": "string"
}
```
