Users
Get a user
Gets a specific user by their user ID. A user is a person or a group of people who uses your app.
For more on the concept of a user in TalkJS, see: Users.
get/v1/{appId}/users/{userId}
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
appIdstring required
Example:abcd1234
A unique identifier of your TalkJS app. You can find your app ID on the Settings page of your dashboard.
userIdstring required
Example:alice
A unique identifier of a user.
Response
User fetched successfully.
Example response
{
"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.