SweetConnect LogoSweetConnect
ApiUsers

Get user by ID

Get user by ID

GET
/v1/users/{userId}
AuthorizationBearer <token>

In: header

Path Parameters

userId*string

The ID of user to retrieve

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://my.sweetconnect.io/api/auth/v1/users/string"
{
  "data": {
    "users": {
      "id": "string",
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "username": "string",
      "activated": true,
      "role": "admin",
      "marketplaceRole": "sweetconnect",
      "additionalProperties": "string"
    }
  },
  "meta": {
    "responseTime": 0
  }
}
{
  "statusCode": 0,
  "message": "string",
  "error": "string"
}
{
  "statusCode": 0,
  "message": "string",
  "error": "string"
}
{
  "statusCode": 0,
  "message": "string",
  "error": "string"
}