Admin Users

Get user chats with pagination

Retrieve a paginated list of chats for a specific user with their last messages

get/admin/users/{id}/chats

Request

  • Base URL
    https://api.miaai.chat (the document declares no server; this is the origin it was published from)
  • URL
    https://api.miaai.chat/admin/users/{id}/chats
  • Auth
    HTTP bearer

Path parameters

idstring required
Example:user-uuid-here

User ID

Query parameters

pagenumber
Example:1

Page number (default: 1)

limitnumber
Example:10

Number of items per page (default: 10)

Response

User chats retrieved successfully

userIdstring required

User ID

totalnumber required

Total number of chats

pagenumber required

Current page number

limitnumber required

Number of items per page

totalPagesnumber required

Total number of pages

Example response

{
  "userId": "user-uuid-here",
  "chats": [
    {
      "id": "chat-uuid-here",
      "model": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "slug": "anna-smith-x7f2k",
        "name": "Emily Davis",
        "status": "IN_PROGRESS",
        "description": "Emily, a 5'8\" blonde model...",
        "photo": "https://example.com/emily.jpg",
        "avatarIcon": "https://cdn.example.com/avatars/annika-avatar.webp",
        "video": "https://example.com/emily.mp4",
        "useVideo": true,
        "isPublic": true,
        "gender": "female",
        "age": 18,
        "relationship": "Colleague",
        "hairColor": "Black",
        "hairStyle": "Long",
        "eyesColor": "Blue",
        "ethnicity": "caucasian",
        "buttSize": "small",
        "bodyType": "slim",
        "breastType": "large",
        "personality": "Playful, Adventurous",
        "occupation": "Model",
        "hobbies": "Yoga, Beach Volleyball",
        "isPro": true,
        "isNew": true,
        "tiktokVideo": "https://example.com/tiktok/annika_tiktok.mp4",
        "onboardingImage": "https://example.com/onboarding/annika_onboarding.webp",
        "allowedChatModes": [
          "ROLEPLAY"
        ],
        "defaultScenarioCover": "https://cdn.example.com/chat-images/uuid.jpg",
        "socialRating": {
          "views": 1234,
          "likes": 87
        }
      },
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  ],
  "total": 25,
  "page": 1,
  "limit": 10,
  "totalPages": 3
}

Changes

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