Skip to content

API Reference

Complete reference for all Lunar Stream Partner API endpoints.

Base URL

https://api.lunarstream.kozow.com/api/v1

Authentication

All endpoints require API Key authentication:

HeaderValue
ls-api-keyYour API Key from Lunar Stream admin

Example:

bash
curl -X GET "https://api.lunarstream.kozow.com/api/v1/livestream?projectId=YOUR_PROJECT_ID" \
  -H "ls-api-key: YOUR_API_KEY"

Response Format

All responses follow this structure:

json
{
  "data": { ... },
  "meta": { ... }
}

Pagination

List endpoints support pagination:

json
{
  "data": [...],
  "meta": {
    "pagination": {
      "page": 1,
      "limit": 10,
      "total": 100,
      "totalPages": 10
    }
  }
}

Error Responses

json
{
  "statusCode": 400,
  "message": "Validation failed",
  "error": "Bad Request"
}
Status CodeDescription
200Success
201Created
400Bad Request - Invalid parameters
401Unauthorized - Invalid/missing API Key
403Forbidden - No permission
404Not Found - Resource doesn't exist
500Internal Server Error

API Endpoints

Streaming APIs

Public APIs (No Auth Required)

  • Public - Stream info for viewers

Rate Limits

Endpoint TypeRate Limit
Livestream CRUD100 req/min
Public APIs1000 req/min

SDKs & Tools

Released under the MIT License.