ComusThumbz Documentation
Admin Login

API

Dokumentacja API REST ComusThumbz

Dawkowanie

GET / api / v1 / adminmoderation

luzem zatwierdzaj POST / api / v1 / admin / moderacja / luzem / zatwierdzaj

  • Auth wymagane: PUBLIC

DELETE / api / v1 / adminmoderation

Usuń zawartość (usunięcie DMCA) DELETE / api / v1 / admin / moderation / {type} / {id}

  • Auth wymagane: PUBLIC

Administratorzy

GET / api / v1 / administratorzy

Pobierz dziennik aktywności użytkownika GET / api / v1 / admin / users / {id} / activity

  • Auth wymagane: PUBLIC

PUT / api / v1 / administratorzy

Aktualizuj użytkownika PUT / api / v1 / admin / users / {id}

  • Auth wymagane: PUBLIC

Ogłoszenia

GET / api / v1 / reklamy

Pobierz statystyki reklamowe (Admin) GET / api / v1 / admin / ads / {id} / stats

  • Auth wymagane: PUBLIC

Analiza

GET / api / v1 / analityka

Pobierz analitykę ruchu GET / api / v1 / analityka / ruch

  • Auth wymagane: PUBLIC

Auth

GET / api / v1 / auth

Wyłącz 2FA DELETE / api / v1 / auth / 2fa

  • Auth wymagane: PUBLIC

Banery

GET / api / v1 / banery

Pobierz statystyki bannerów GET / api / v1 / banery / {id} / statystyki

  • Auth wymagane: PUBLIC
  • Parametry:
  • bannerId (int): Identyfikator bannera

Kategorie

GET / api / v1 / kategorie

Pobierz galerie w kategorii GET / api / v1 / kategorie / {id} / galerie

  • Auth wymagane: PUBLIC
  • Parametry:
  • id (int): Kategoria ID

POST / api / v1 / kategorie

Utwórz nową kategorię (tylko admin) POST / api / v1 / kategorie

  • Auth wymagane: PUBLIC

PUT / api / v1 / kategorie

Kategoria aktualizacji (tylko admin) PUT / api / v1 / kategorie / {id}

  • Auth wymagane: PUBLIC
  • Parametry:
  • id (int): Kategoria ID

DELETE / api / v1 / kategorie

Usuń kategorię (tylko admin) DELETE / api / v1 / kategorie / {id}

  • Auth wymagane: PUBLIC
  • Parametry:
  • id (int): Kategoria ID

ClickTracking

GET / api / v1 / clicktracking

GET / api / v1 / stats / clicks / user / {userId} Pobierz historię kliknięć użytkownika (Użytkownik musi być uwierzytelniony)

  • Auth wymagane: PUBLIC

Uwagi

GET / api / v1 / komentarze

GET / api / v1 / komentarze / oznaczone Pobierz wszystkie oznaczone komentarze (tylko admin)

  • Auth wymagane: PUBLIC

POST / api / v1 / komentarze

POST / api / v1 / kamery / {strona} / {wykonawca} / komentarze Dodaj komentarz do kamerzysty

  • Auth wymagane: PUBLIC

PUT / api / v1 / komentarze

PUT / api / v1 / comments / {id} / status Aktualizacja statusu komentarza (tylko admin)

  • Auth wymagane: PUBLIC

DELETE / api / v1 / komentarze

DELETE / api / v1 / comments / {id} / like Usuń jak / nielubić z komentarza

  • Auth wymagane: PUBLIC

Kreatorzy

GET / api / v1 / kreatorearnings

GET / creator / zarobki / platform- ustawienia - Pobierz ustawienia opłat za platformę Zwraca globalną opłatę za platformę i niestandardowe opłaty twórcy, jeśli dotyczy Ten punkt końcowy jest publiczny (nie jest wymagane auth) do celów wyświetlania

  • Auth wymagane: PUBLIC

Profile tworzenia

GET / api / v1 / profile twórcze

CreatorProfilesController - Zarządzanie profilami Stwórcy

  • Auth wymagane: PUBLIC

POST / api / v1 / profile twórcze

POST / twórca / profil - Tworzenie nowego profilu twórcy

  • Auth wymagane: PUBLIC

PUT / api / v1 / profile twórcze

PATCH / creator / profil / ja - Aktualizacja uwierzytelnionego profilu twórcy

  • Auth wymagane: PUBLIC

Twórcy

GET / api / v1 / twórcy

POST / api / v1 / twórcy / ja / okładka

  • Auth wymagane: PUBLIC

PUT / api / v1 / twórcy

PUT / api / v1 / twórcy / ja Aktualizuj ustawienia profilu twórcy

  • Auth wymagane: PUBLIC

Subskrypcje dla twórców

GET / api / v1 / subskrypcje twórców

DELETE / twórcy / {id} / pakiety / {opakowanieid} - Stwórca wyłącza pakiet

  • Auth wymagane: PUBLIC

Zyski

GET / api / v1 / zarobki

GET / api / v1 / twórca / zarobki / by- source Pobierz podział zarobków według źródła (wskazówki, subskrypcje, PPV) Zawiera liczby i sumy

  • Auth wymagane: PUBLIC

Ulubione

GET / api / v1 / ulubione

GET / Ulubione / Liczby Ulubione liczby dla użytkownika według typu

  • Auth wymagane: PUBLIC

POST / api / v1 / ulubione

POST / Ulubione Dodaj element do ulubionych Body: {"contentTyp ":" video Xi124; galeria Xi124; camperformer recorder 124; model "," contentid ":" 123 "," uwagi ":" opcjonalne "}

  • Auth wymagane: PUBLIC

DELETE / api / v1 / ulubione

DELETE / Ulubione / {typ} / {id} Usuń z ulubionych

  • Auth wymagane: PUBLIC

Cechy

GET / api / v1 / funkcje

Pobierz włączone strony kamery GET / api / v1 / funkcje / kamery

  • Auth wymagane: PUBLIC

Pasza

GET / api / v1 / pasza

Pobierz trendującą zawartość GET / api / v1 / feed / trending

  • Auth wymagane: PUBLIC

Przyjaciele

GET / api / v1 / przyjaciele

Odrzuć prośbę przyjaciela PUT / api / v1 / znajomych / {id} / odrzuć

  • Auth wymagane: PUBLIC
  • Parametry:
  • id (int): ID przyjaźni

POST / api / v1 / przyjaciele

Wyślij znajomemu prośbę POST / api / v1 / znajomych

  • Auth wymagane: PUBLIC

DELETE / api / v1 / przyjaciele

Usuń przyjaciela DELETE / api / v1 / znajomych / {id}

  • Auth wymagane: PUBLIC
  • Parametry:
  • id (int): ID przyjaźni

Galerie

GET / api / v1 / galerie

GET / galerie / {id} / powiązane - Pobierz powiązane galerie

  • Auth wymagane: PUBLIC

POST / api / v1 / galerie

POST / galerie - Tworzenie galerii (tylko admin)

  • Auth wymagane: PUBLIC

PUT / api / v1 / galerie

PATCH / galerie / {id} / status - Aktualizacja statusu galerii (tylko admin)

  • Auth wymagane: PUBLIC

DELETE / api / v1 / galerie

DELETE / galerie / {id} - Usuń galerię (tylko admin)

  • Auth wymagane: PUBLIC

ImpressionTracking

GET / api / v1 / impressiontracking

GET / api / v1 / wrażenia / trendy / {typ} Uzyskaj trendy wydajności w czasie

  • Auth wymagane: PUBLIC

LiveStream

GET / api / v1 / livestream

GET / api / v1 / live / {id} / per- minute / status Uzyskaj aktualny stan sesji Per- minute

  • Auth wymagane: PUBLIC

Media

GET / api / v1 / media

Pobierz adres URL pamięci dla określonego pliku wideo

  • Auth wymagane: PUBLIC
  • Parametry:
  • videoId (int): ID wideo
  • fileType (ciąg znaków): Typ pliku (miniatura, podgląd, plakat, wideo, hls, itp.)
  • Zwraca: vaid - (zwraca pobierz adres URL lub błąd)

Wiadomości

GET / api / v1 / wiadomości

Pobierz listę zablokowanych użytkowników GET / api / v1 / wiadomości / zablokowane

  • Auth wymagane: PUBLIC

DELETE / api / v1 / wiadomości

Usuń wiadomość DELETE / api / v1 / wiadomości / {id}

  • Auth wymagane: PUBLIC

Modele

GET / api / v1 / modele

GET / api / v1 / modele / {id} / szczegóły Uzyskaj ujednolicone szczegóły modelu Query params: - typ: regularny 124; cammodel (wymagany)

  • Auth wymagane: PUBLIC

POST / api / v1 / modele

POST / api / v1 / modele Tworzenie nowego modelu (tylko admin)

  • Auth wymagane: PUBLIC

PUT / api / v1 / modele

PUT / api / v1 / modelklasy / {id} / status Aktualizacja statusu modelu (tylko admin)

  • Auth wymagane: PUBLIC

DELETE / api / v1 / modele

DELETE / api / v1 / modelklasy / {id} Usuń model (tylko admin)

  • Auth wymagane: PUBLIC

Powiadomienia

GET / api / v1 / powiadomienia

Uzyskaj preferencje zgłoszenia GET / api / v1 / powiadomienia / preferencje

  • Auth wymagane: PUBLIC

PUT / api / v1 / powiadomienia

Uaktualnij preferencje powiadomień PUT / api / v1 / powiadomienia / preferencje

  • Auth wymagane: PUBLIC

DELETE / api / v1 / powiadomienia

Usuń powiadomienie (miękkie usunięcie) DELETE / api / v1 / powiadomienia / {id}

  • Auth wymagane: PUBLIC

Gracz

GET / api / v1 / player

Kontroler gracza obsługuje konfigurację i ustawienia odtwarzacza wideo

  • Auth wymagane: PUBLIC

Lista odtwarzania

GET / api / v1 / playlist

PUT /playlists/{id}/items/reorder Reorder playlist items (owner only) Body: { "items": [ { "itemid": 1, "sortorder": 0 }, { "itemid": 2, "sortorder": 1 } ] }

  • Auth Required: PUBLIC

POST /api/v1/playlists

POST /playlists/{id}/items Add video to playlist (owner only) Body: { "videoid": 123, "sortorder": 1 }

  • Auth Required: PUBLIC

PUT /api/v1/playlists

PUT /playlists/{id} Update playlist (owner only)

  • Auth Required: PUBLIC

DELETE /api/v1/playlists

DELETE /playlists/{id}/items/{itemId} Remove video from playlist (owner only)

  • Auth Required: PUBLIC

Posts

GET /api/v1/posts

GET /api/v1/posts/{id}/poll Get poll data for a post

  • Auth Required: PUBLIC
  • Parameters:
  • postId (int): Post ID

POST /api/v1/posts

POST /api/v1/posts/with-product Create a post with product attachment Handles multipart/form-data with files

  • Auth Required: PUBLIC

PUT /api/v1/posts

PUT /api/v1/posts/{id}/poll Update poll data for a post

  • Auth Required: PUBLIC
  • Parameters:
  • postId (int): Post ID

DELETE /api/v1/posts

DELETE /comments/{id} Delete a comment (soft delete)

  • Auth Required: PUBLIC

Products

GET /api/v1/products

Refund a merchandise purchase (Option 2: Proportional Loss) - User gets full refund (100%) - Creator loses their portion (80%) - Platform absorbs their portion (20%)

  • Auth Required: PUBLIC

POST /api/v1/products

Products Controller Handles creator merchandise/product operations

  • Auth Required: AUTH

PUT /api/v1/products

Update order shipping status and tracking number

  • Auth Required: PUBLIC

Ratings

GET /api/v1/ratings

GET /api/v1/models/{id}/rating Get rating stats for a model

  • Auth Required: PUBLIC

DELETE /search/history - Clear user's search history

  • Auth Required: PUBLIC

SecurityQuestions

GET /api/v1/securityquestions

Reset password using security question token POST /api/v1/auth/reset-password-with-token

  • Auth Required: PUBLIC

Settings

GET /api/v1/settings

Get video player settings GET /api/v1/settings/player

  • Auth Required: PUBLIC

PUT /api/v1/settings

Get all public settings (cached) This is the main method that builds the settings array / private function getPublicSettings(): array { global $conn;

  • Auth Required: PUBLIC

Sponsors

GET /api/v1/sponsors

Track sponsor click POST /api/v1/sponsors/{id}/click

  • Auth Required: PUBLIC

Styles

GET /api/v1/styles

Bulk save multiple styles at once POST /api/v1/styles/bulk

  • Auth Required: PUBLIC

DELETE /api/v1/styles

Delete a specific style override DELETE /api/v1/styles/{id}

  • Auth Required: PUBLIC
  • Parameters:
  • id (int): Style ID

Subscriptions

GET /api/v1/subscriptions

Upgrade subscription POST /api/v1/subscriptions/upgrade

  • Auth Required: PUBLIC

Tags

GET /api/v1/tags

Parse tag string and return tag IDs (creates tags if they don't exist) POST /api/v1/tags/parse

  • Auth Required: PUBLIC

POST /api/v1/tags

Create new tag (admin only) POST /api/v1/tags

  • Auth Required: PUBLIC

PUT /api/v1/tags

Update tag (admin only) PUT /api/v1/tags/{id}

  • Auth Required: PUBLIC
  • Parameters:
  • id (int): Tag ID

DELETE /api/v1/tags

Delete tag (admin only) DELETE /api/v1/tags/{id}

  • Auth Required: PUBLIC
  • Parameters:
  • id (int): Tag ID

Tips

GET /api/v1/tips

POST /api/v1/tips/{tipid}/refund Refund a tip (creator only) - Option 2: Proportional Loss User gets 100% back, creator loses their portion (80%), platform absorbs their portion (20%)

  • Auth Required: PUBLIC

UserPreferences

GET /api/v1/userpreferences

GET /user/preferences Get all user preferences (privacy, stream, email)

  • Auth Required: PUBLIC

PUT /api/v1/userpreferences

PUT /user/preferences/email Update user's email preferences

  • Auth Required: PUBLIC

Users

GET /api/v1/users

Get trusted devices for current user GET /api/v1/user/trusted-devices

  • Auth Required: PUBLIC

PUT /api/v1/users

Update profile privacy settings PUT /api/v1/users/me/privacy

  • Auth Required: PUBLIC

DELETE /api/v1/users

Remove a trusted device DELETE /api/v1/user/trusted-devices/{id}

  • Auth Required: PUBLIC

UserVerification

GET /api/v1/userverification

GET /admin/verification/stats Get verification statistics (admin only)

  • Auth Required: PUBLIC

PUT /api/v1/userverification

PUT /admin/verification/{userId}/status Update verification status (admin only)

  • Auth Required: PUBLIC

DELETE /api/v1/userverification

DELETE /user/verification/documents/{documentId} Delete a verification document

  • Auth Required: PUBLIC

VideoReports

GET /api/v1/videoreports

GET /video-reports/reasons - Get list of valid report reasons

  • Auth Required: PUBLIC

Videos

GET /api/v1/videos

Generate URL-friendly slug from title

  • Auth Required: PUBLIC
  • Parameters:
  • title (string):
  • Returns: string -

POST /api/v1/videos

POST /videos/{id}/tags - Add tag to video

  • Auth Required: PUBLIC

PUT /api/v1/videos

PATCH /videos/{id}/status - Update video status (admin only)

  • Auth Required: PUBLIC

DELETE /api/v1/videos

DELETE /videos/{id} - Delete video (owner or admin)

  • Auth Required: PUBLIC

WatchHistory

GET /api/v1/watchhistory

POST /content/{type}/{id}/track Track viewing of any content type (camperformer, gallery, model) Body: optional { "watchedduration": 1, "totalduration": 1 }

  • Auth Required: PUBLIC

PUT /api/v1/watchhistory

POST /videos/{id}/progress Update video watch progress Body: { "watchedduration": 120, "totalduration": 600, "lastposition": 120 }

  • Auth Required: PUBLIC

DELETE /api/v1/watchhistory

DELETE /history/{id} Remove specific history entry

  • Auth Required: PUBLIC

Webcam

GET /api/v1/webcam

GET /cams/{id}/schedule - Get performer's schedule/heatmap data

  • Auth Required: PUBLIC
  • Parameters:
  • performerId (int): Performer ID from tblCamsPerformers
  • Returns: array - Schedule data with metadata

Webhooks

GET /api/v1/webhooks

GET /api/v1/webhooks/status Get cloud encoding status (requires admin auth)

  • Auth Required: PUBLIC

Withdrawals

GET /api/v1/withdrawals

GET /api/v1/creator/withdrawals/my-requests Get withdrawal history for current user

  • Auth Required: PUBLIC