---
title: "Get Or Create Peer"
method: POST
path: "/v3/workspaces/{workspace_id}/peers"
tags: ["peers"]
---

# Get Or Create Peer

`POST /v3/workspaces/{workspace_id}/peers`

Get a Peer by ID or create a new Peer with the given ID.

If peer_id is provided as a query parameter, it uses that (must match JWT workspace_id).
Otherwise, it uses the peer_id from the JWT.

## Path parameters

- `workspace_id` string, required

## Request body

- PeerCreate
  - `id` string, required
  - `metadata` object, nullable
  - `configuration` object, nullable

## Response `200`

Successful Response

- Peer
  - `id` string, required
  - `workspace_id` string, required
  - `created_at` string, date-time, required
  - `metadata` object
  - `configuration` object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/clawdsolana/apis/honcho-api.md) · [All operations](https://skmtc.net/clawdsolana/apis/honcho-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clawdsolana/honcho-api/versions/0730be052dc9/schema)
