---
search:
  tags:
    - Torrents
    - POST
seo:
  description: >-
    Connect a torrent to peers. Reference for the POST /torrents/{hash}/peers
    endpoint in the piecemeal API.
sidebar:
  label: Connect a torrent to peers
  badge: POST
title: Connect a torrent to peers
type: openapi-operation
---
`POST /torrents/{hash}/peers`

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

- `addresses` (string[] | null, required) — host:port, IP addresses only.

Request body example:

```json
{
  "addresses": [
    "string"
  ]
}
```

**Responses**

- `204` — No Content
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error
