TagMangoTagMango Docs
Account

Get User By ID

GET
/api/v1/external/users/{userId}

Overview

This endpoint can be used to get user basic information using user identifier.

AuthorizationBearer <token>

In: header

Path Parameters

userId*string

User identifier for fetching user details

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

x-api-version?string

API version. Supported versions: 1.0, 1.1

Default"1.0"
Value in"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
}