Admin Attachments
Get attachments list with pagination and filters
Retrieve a paginated list of attachments with optional filtering by search terms, type, status, explicit content flag, and user ID
get/admin/attachments
Query parameters
pagenumber
Example:1
Page number (default: 1)
limitnumber
Example:10
Number of items per page (default: 10)
searchstring
Example:beautiful sunset
Search in prompt text
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 list retrieved successfully
Example response
{
"attachments": [
{
"id": "attachment-uuid-here",
"messageId": "message-uuid-here",
"chatId": "chat-uuid-here",
"userId": "user-uuid-here",
"prompt": "A beautiful sunset over the ocean",
"type": "image",
"s3Key": "chat-images/attachment-key.jpg",
"mimeType": "image/jpeg",
"status": "COMPLETED",
"url": "https://cdn.example.com/chat-images/attachment-key.jpg",
"videoUrl": "https://cdn.example.com/chat-images/video-key.mp4",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"total": 150,
"page": 1,
"limit": 10,
"totalPages": 15
}