GET
/
api
/
v3
/
users
Query Users
curl --request GET \
  --url https://apix.us.amity.co/api/v3/users \
  --header 'Authorization: Bearer <token>'
{
  "users": [
    {
      "_id": "<string>",
      "path": "<string>",
      "userId": "<string>",
      "userInternalId": "<string>",
      "userPublicId": "<string>",
      "roles": [
        "<string>"
      ],
      "permissions": [
        "MUTE_CHANNEL"
      ],
      "displayName": "<string>",
      "profileHandle": "<string>",
      "description": "<string>",
      "avatarFileId": "<string>",
      "avatarCustomUrl": "<string>",
      "flagCount": 123,
      "hashFlag": {
        "bits": 123,
        "hashes": 123,
        "hash": [
          "<string>"
        ]
      },
      "metadata": {},
      "isGlobalBan": true,
      "isBrand": true,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "isDeleted": true
    }
  ],
  "files": [
    {
      "fileId": "<string>",
      "fileUrl": "<string>",
      "type": "image",
      "accessType": "public",
      "altText": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "attributes": {
        "name": "<string>",
        "extension": "<string>",
        "size": 123,
        "mimeType": "<string>",
        "metadata": {
          "exif": {},
          "gps": {},
          "height": 123,
          "width": 123,
          "isFull": true
        }
      }
    }
  ],
  "roles": [
    {
      "roleId": "<string>",
      "displayName": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "permissions": [
        "<string>"
      ],
      "isDeleted": false
    }
  ],
  "paging": {
    "next": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

keyword
string

Keyword to search for in user information such as displayName, profileHandle, and userId. The search is case-insensitive and supports partial matches.

Maximum length: 100
exactMatchKeyword
boolean
default:false

Return exact match search result when true

filter
enum<string>
default:all

Filter users either by all users or only flagged users

Available options:
all,
flagged
sortBy
enum<string>
default:displayName

Sort users by specified criteria default to displayName.

Available options:
firstCreated,
lastCreated,
displayName,
profileHandle
searchBy
enum<string>[]

Fields to search users for the keyword (must be used with a keyword parameter), Default is all three fields <br>

  • displayName - Search by display name. When using with sortBy parameter the applicable sort order is displayName, lastCreated or firstCreated. Default to displayName.<br>
  • profileHandle - Search by profile handle, when using with sortBy parameter the applicable sort order is profileHandle, lastCreated or firstCreated. Default to profileHandle. <br>
  • userId - Search by user id, when using with sortBy parameter the applicable sort order is lastCreated, firstCreated or displayName. Default to displayName.<br> Default is all three fields
Maximum length: 3
options[limit]
integer
default:10

Number of results per page (1-100)

Required range: 1 <= x <= 100
options[token]
string

Pagination token for getting next/previous pages

Maximum length: 100
isDeleted
boolean
default:false

filter only deleted users when true

Response

200
application/json

User

The response is of type object.