---
title: "Create a pairing session"
method: POST
path: "/v1/private/pairing/sessions"
tags: ["Pairing"]
---

# Create a pairing session

`POST /v1/private/pairing/sessions`

Register a short-lived pairing session that a local daemon will later activate via HMAC

## Request body

- CreateSessionRequest
  - `project_id` string, uuid, required
  - `activation_key` string, required
  - `ttl_seconds` integer
  - `type` 'connect' | 'endpoint', required

## Response `201`

Session created

- CreateSessionResponse
  - `session_id` string, uuid
  - `runner_id` string, uuid

## Other responses

- `400` — Bad request
- `404` — Project not found
- `422` — Unprocessable entity
- `429` — Too many requests

## Changes

- **2026-05-12** `fb24a83b6a7e` — 1 info
  - removed the non-success response with the status `501`
- **2026-05-04** `d606e84c75e4` — 1 info
  - added the non-success response with the status `501`

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/pairing/sessions/post.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/0739fa5022ca/schema)
