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
Request
- Base URLhttps://api.miaai.chat (the document declares no server; this is the origin it was published from)
- URLhttps://api.miaai.chat/admin/attachments/stats
- AuthHTTP bearer
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
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 operation across all 1 revision of this API.