List users in an app
Lists all users that were ever created in your TalkJS application.
You can filter results based on whether the user is online or not, and by a timestamp for when the user was created.
Request
- Base URLhttps://api.talkjs.com
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
A unique identifier of your TalkJS app. You can find your app ID on the Settings page of your dashboard.
Query parameters
An optional parameter to filter results based on whether a user is online or not.
An optional parameter to specify the number of results that should be returned.
An optional object ID that identifies a place in the record list, to allow you to paginate through a list of results.
By default, all records are sorted in descending order based on their createdAt property, which is a timestamp of a record's insertion date.
Response
Users listed successfully.
Example response
{
"data": [
{
"id": "0123456789abc",
"createdAt": 1525249255419,
"name": "Alice",
"role": "admin",
"custom": {
"country": "Bahrain"
},
"photoUrl": "https://talkjs.com/images/avatar-1.jpg",
"locale": "ar",
"welcomeMessage": "Hi there, how are you? :-)",
"availabilityText": "We're usually online during office hours",
"pushTokens": {
"fcm:TOKEN_ID": true
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.