Allmine API
Live Stream Reports

Create live stream report

**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. Creates a report for the given live stream. If report type is other, description is required.

POST
/api/v1/live-stream-reports/{streamId}

Production uyarisi: Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin.

Creates a report for the given live stream. If report type is other, description is required.

Authorization

JWT-auth
AuthorizationBearer <token>

Paste the JWT access token without the Bearer prefix.

In: header

Path Parameters

streamId*string

Live stream id

Header Parameters

X-Language?string

Uygulama içerisinde seçilen dil (varsayılan: en)

Value in"en" | "tr"
X-Timezone?string

Zaman dilimi (varsayılan: UTC)

Value in"UTC-12:00" | "UTC-11:00" | "UTC-10:00" | "UTC-09:30" | "UTC-09:00" | "UTC-07:00" | "UTC-06:00" | "UTC-05:00" | "UTC-04:00" | "UTC-03:30" | "UTC-03:00" | "UTC-02:00" | "UTC-01:00" | "UTC+00:00" | "UTC+01:00" | "UTC+02:00" | "UTC+03:00" | "UTC+03:30" | "UTC+04:00" | "UTC+04:30" | "UTC+05:00" | "UTC+05:30" | "UTC+05:45" | "UTC+06:00" | "UTC+06:30" | "UTC+07:00" | "UTC+08:00" | "UTC+08:45" | "UTC+09:00" | "UTC+09:30" | "UTC+10:00" | "UTC+10:30" | "UTC+11:00" | "UTC+12:00" | "UTC+12:45" | "UTC+13:00" | "UTC+14:00"
X-Platform?string

Platform (varsayılan: web)

Value in"web" | "mobile_ios" | "mobile_android" | "admin" | "api" | "unknown" | "all"
X-App-Version?string

Uygulama versiyonu (opsiyonel)

X-Device-ID?string

Cihaz kimliği (opsiyonel)

Request Body

application/json

Live stream report payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/live-stream-reports/string" \  -H "Content-Type: application/json" \  -d '{    "type": "harassment_or_bullying",    "description": "Yayinda nefret soylemi bulunuyor."  }'
{
  "isSuccess": true,
  "statusCode": 201,
  "data": {
    "id": "67c6ea18f95dcbe6b2275b27",
    "reportedBy": {
      "_id": "64d15f9e2e6c8f4d5a123456",
      "username": "johndoe",
      "name": "John",
      "surname": "Doe",
      "profilePhoto": {
        "_id": "507f1f77bcf86cd799439012",
        "url": "https://example.com/uploads/images/profile.jpg",
        "type": "image",
        "variants": {
          "40": "https://cdn.example.com/profiles/user/40.webp",
          "76": "https://cdn.example.com/profiles/user/76.webp"
        },
        "createdAt": "2024-01-15T10:30:00.000Z",
        "updatedAt": "2024-01-15T12:30:00.000Z"
      },
      "availabilityStatus": "available"
    },
    "liveStream": {
      "id": "67c6ea18f95dcbe6b2275b26",
      "title": "Gece yayini",
      "status": "active"
    },
    "streamCreator": {
      "_id": "64d15f9e2e6c8f4d5a123456",
      "username": "johndoe",
      "name": "John",
      "surname": "Doe",
      "profilePhoto": {
        "_id": "507f1f77bcf86cd799439012",
        "url": "https://example.com/uploads/images/profile.jpg",
        "type": "image",
        "variants": {
          "40": "https://cdn.example.com/profiles/user/40.webp",
          "76": "https://cdn.example.com/profiles/user/76.webp"
        },
        "createdAt": "2024-01-15T10:30:00.000Z",
        "updatedAt": "2024-01-15T12:30:00.000Z"
      },
      "availabilityStatus": "available"
    },
    "streamStatusAtReport": "active",
    "type": "harassment_or_bullying",
    "description": "Yayinda hakaret icerigi var.",
    "status": "pending",
    "reviewedBy": {
      "_id": "64d15f9e2e6c8f4d5a123456",
      "username": "johndoe",
      "name": "John",
      "surname": "Doe",
      "profilePhoto": {
        "_id": "507f1f77bcf86cd799439012",
        "url": "https://example.com/uploads/images/profile.jpg",
        "type": "image",
        "variants": {
          "40": "https://cdn.example.com/profiles/user/40.webp",
          "76": "https://cdn.example.com/profiles/user/76.webp"
        },
        "createdAt": "2024-01-15T10:30:00.000Z",
        "updatedAt": "2024-01-15T12:30:00.000Z"
      },
      "availabilityStatus": "available"
    },
    "adminNotes": "Icerik ihlali onaylandi.",
    "resolvedAt": "2026-01-15T10:30:00.000Z",
    "isArchived": false,
    "metadata": {
      "userAgent": "Mozilla/5.0",
      "ipAddress": "127.0.0.1",
      "platform": "ios"
    },
    "createdAt": "2026-01-15T10:30:00.000Z",
    "updatedAt": "2026-01-15T10:30:00.000Z"
  },
  "errors": [],
  "timestamp": "2026-05-22T16:11:27.509Z"
}
{
  "isSuccess": false,
  "statusCode": 400,
  "data": null,
  "errors": [
    "Validation failed"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 401,
  "data": null,
  "errors": [
    "Authentication required"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 403,
  "data": null,
  "errors": [
    "Insufficient permissions"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 404,
  "data": null,
  "errors": [
    "Resource not found"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 409,
  "data": null,
  "errors": [
    "Resource already exists or cannot be changed in its current state"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}