Get User

This endpoint retrieves a specific User.

Request

To retrieve a single User please make a GET request to the following URL:

HTTP MethodURL
GEThttps://industrial.api.ubidots.com/api/v2.0/users/<user_key>

Path Parameters

ParameterTypeDescription
user_keyStringThe id or of username of the User, username should use the prefix ~

Header

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ curl -X GET 'https://industrial.api.ubidots.com/api/v2.0/users/633dbd6505527d1d115fab33' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
  "url": "https://industrial.api.ubidots.com/api/v2.0/users/633dbd6505527d1d115fab33",
  "id": "633dbd6505527d1d115fab33",
  "username": "check",
  "firstName": "",
  "lastName": "",
  "email": "[email protected]",
  "defaultOrganization": null,
  "defaultRole": null,
  "defaultDashboard": null,
  "mugshotUrl": "//www.gravatar.com/avatar/4ba4a30b1efff2cd600744948a622f3a?s=100&d=mm",
  "language": null,
  "website": "",
  "timezone": null,
  "decimalPlaces": 2,
  "numberFormat": null,
  "firstTime": true,
  "properties": {
  		"password_update_timestamp": 1711121993410
  },
  "isActive": true,
  "lastLogin": "2023-01-25T22:52:35.613512Z",
  "tags": [
      "tag1",
      "tag2"
  ],
  "createdAt": "2022-10-05T17:22:45.169908Z",
  "contactMethods": {
      {
         "id": "661075c55e660d000d2e02b1",
         "type": "voice",
         "values": [
            "+57 3305514578"
         ],
         "properties": {}
      }
  }
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}

Response

Returns a User object with the requested User.