Skip to main content

Add Live Session

Add a live streaming session record via the API.

POST
/live-session/create
x-api-key<token>

API key used for authentication

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/live-session/create" \  -H "Content-Type: application/json" \  -d '{    "platform": "string",    "startTime": "2019-08-24T14:15:22Z",    "endTime": "2019-08-24T14:15:22Z"  }'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "userId": "test-user-id",
  "platform": "twitch",
  "startTime": "2026-03-14T11:35:08.458Z",
  "endTime": "2026-03-14T12:35:08.458Z",
  "peakViewerCount": 500,
  "finalViewerCount": 450,
  "createdAt": "2026-03-14T11:35:08.458Z",
  "updatedAt": "2026-03-14T11:35:08.458Z"
}
{
  "error": "string",
  "code": "string",
  "details": {}
}