---
title: "Close Streaming Session"
method: POST
path: "/v2/streaming/sessions/{session_id}/close"
tags: ["v2 - Streaming"]
---

# Close Streaming Session

`POST /v2/streaming/sessions/{session_id}/close`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/streaming/sessions/{session_id}/close`
- Auth: HTTP bearer

Close a streaming session and settle any remaining balance.

Optional body: {"playback_seconds": <float>} — if provided, the final
settlement uses precise playback seconds instead of segment rounding.

## Path parameters

- `session_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- CloseSessionRequest
  - `playback_seconds` number, nullable: Exact playback seconds watched — used for precise final settlement.

## Response `200`

Successful Response

- CloseResponse
  - `session_id` string, required
  - `amount_settled` integer, required
  - `status` string, required
  - `end_reason` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
