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>"
}
}
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>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Keyword to search for in user information such as displayName, profileHandle, and userId. The search is case-insensitive and supports partial matches.
100
Return exact match search result when true
Filter users either by all users or only flagged users
all
, flagged
Sort users by specified criteria default to displayName
.
firstCreated
, lastCreated
, displayName
, profileHandle
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 fields3
Show child attributes
Number of results per page (1-100)
1 <= x <= 100
Pagination token for getting next/previous pages
100
filter only deleted users when true
User
The response is of type object
.