---
title: "POST /session"
method: POST
path: "/session"
tags: ["Notarization"]
---

# POST /session

`POST /session`

Initialize and configure notarization for both TCP and WebSocket clients

## Headers

- `Content-Type` 'application/json', required
- `Authorization` string

## Request body

- NotarizationSessionRequest
  - `clientType` 'Tcp' | 'Websocket', required — Types of client that the prover is using
  - `maxSentData` integer — Maximum data that can be sent by the prover in bytes
  - `maxRecvData` integer — Maximum data that can be received by the prover in bytes

## Response `200`

Notarization session response from server

- NotarizationSessionResponse
  - `sessionId` string, required — Unique ID returned from server upon calling POST /session

## Other responses

- `400` — Configuration parameters or headers provided by prover are invalid
- `401` — API key is invalid
- `500` — There was some internal error when processing

---

[API](https://skmtc.net/0xfreysa/apis/notary-server.md) · [All operations](https://skmtc.net/0xfreysa/apis/notary-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/0xfreysa/notary-server/versions/34e0d1f6fd43/schema)
