Get User By ID
Overview
This endpoint can be used to get user basic information using user identifier.
Authorization
bearer In: header
Path Parameters
User identifier for fetching user details
Header Parameters
Host name of the dashboard, ex: mydomain.tagmango.com
API version. Supported versions: 1.0, 1.1
"1.0""1.0" | "1.1"Response Body
application/json
application/json
application/json
curl -X GET "https://api-prod-new.tagmango.com/api/v1/external/users/62ea773dfc87495de3894e73" \ -H "x-whitelabel-host: string"{
"_id": "6659ca9e5f2acb7abfdcd8fd",
"name": "John Doe",
"email": "john.doe@example.com",
"host": "yourhost.tagmango.com",
"userSlug": "john-doe",
"phone": 1234567890,
"profilePicUrl": "https://linktoprofilepic.com/pic.jpg",
"onboarding": "creator_completed",
"isDeactivated": false,
"country": "India",
"dialCode": "+91",
"currency": "USD",
"leaderboardRank": 1,
"score": 100,
"creator": "6149b1e5612c4e5fd96041d3",
"hasGamificationAccess": false
}{
"code": 400,
"type": "Bad request",
"statusMessage": "BAD_REQUEST",
"message": "Invalid request",
"success": false
}{
"code": 401,
"type": "Unauthorized",
"statusMessage": "UNAUTHORIZED",
"message": "Invalid token",
"success": false
}Get User By Email or Phone GET
## Overview This endpoint can be used to look up a user by email or phone number. At least one of email or phone must be provided. If both are provided, the lookup requires both to match the same user, else it will respond with not found.
Get Courses GET
Get all the available courses for creator or subscriber. - To access courses for a subscriber, pass the user parameter in query. - Accessed on behalf of a subscriber, courses will be filtered based on active subscription for the mangoes in the course. - Accessed without user parameter, all the courses will be returned for the creator. - Accessed on behalf of a creator, courses will be filtered based on the creator.