---
title: "Record Streaming Segment"
method: POST
path: "/v2/streaming/sessions/{session_id}/segment"
tags: ["v2 - Streaming"]
---

# Record Streaming Segment

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

## 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}/segment`
- Auth: HTTP bearer

Record a viewed segment (heartbeat from player every 6 seconds).
Tracking only: settlement happens once, at close.

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

## Response `200`

Successful Response

- SegmentResponse
  - `session_id` string, required
  - `segment_count` integer, 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)
