---
title: "POST /p2p/connect"
method: POST
path: "/p2p/connect"
tags: ["p2p"]
---

# POST /p2p/connect

`POST /p2p/connect`

Connect to peers

## Request body

- string[]

## Response `200`

ok

## Other responses

- `400` — error

## Changes

- **2026-07-20** `bf2e90fa690e` — 1 breaking
  - added required request body
- **2025-10-17** `1cd1999e4b7a` — 1 info
  - endpoint added
- **2025-06-02** `60812f5416c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/p2p/connect/post.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/659e79583f79/schema)
