---
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

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
