Admin Attachments

Get attachments statistics

Retrieve statistics about attachments including total, images, videos, explicit content, failed, and successful counts. When filters are provided, returns both general stats and filtered stats.

get/admin/attachments/stats

Query parameters

type'image' | 'video' | 'audio' | 'gift' | 'all'
Example:IMAGE

Filter by attachment type (use "all" to show all types)

status'IN_QUEUE' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'TIMED_OUT'
Example:COMPLETED

Filter by status

explicitboolean

Filter by explicit content flag (true/false)

userIdstring
Example:user-uuid-here

Filter by user ID

fromstring
Example:2024-01-01T00:00:00Z

Filter from date (ISO string)

tostring
Example:2024-12-31T23:59:59Z

Filter to date (ISO string)

isFromUserboolean
Example:true

Filter by whether attachment was sent by user (true/false)

Response

Attachments statistics retrieved successfully

totalnumber required

Total number of attachments

imagesnumber required

Number of image attachments

videosnumber required

Number of video attachments

explicitnumber required

Number of explicit content attachments

failednumber required

Number of failed attachments

successfulnumber required

Number of successful attachments

Example response

{
  "total": 150,
  "images": 120,
  "videos": 30,
  "explicit": 10,
  "failed": 5,
  "successful": 145,
  "filtered": {
    "total": 50,
    "images": 40,
    "videos": 10,
    "explicit": 5,
    "failed": 2,
    "successful": 48
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.