Get User

GET /user/{userId}

Get information about a user

Headers

Path parameters

  • userId string Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • success boolean Required
    • user object Required
      Hide user attributes Show user attributes object
      • id string Required
      • created_at string Required
      • name string
      • profile_image_url string
      • email string
      • email_domain string
      • country_code string
      • status string Required
      • type string Required
      • temporarily_banned_until string(date)

        ISO Date e.g. 2022-07-21T18:12:39.000Z https://en.wikipedia.org/wiki/ISO_8601

      • strike_until string(date)

        ISO Date e.g. 2022-07-21T18:12:39.000Z https://en.wikipedia.org/wiki/ISO_8601

      • last_accepted_profile_name string

        The last profile image that was accepted by Lasso.

      • last_accepted_profile_image string

        The last profile image that was accepted by Lasso

GET /user/{userId}
curl \
 --request GET 'https://api.lassomoderation.com/api/v1/user/{userId}' \
 --header "Authorization: string"
Response examples (200)
{
  "user": {
    "id": "user_api_test",
    "name": "Fred",
    "type": "normal",
    "email": "fred@privaterelay.appleid.com",
    "status": "hidden",
    "created_at": "2024-03-05T14:02:02.236Z",
    "country_code": "NL",
    "email_domain": "privaterelay.appleid.com",
    "strike_until": "2024-03-05T15:19:12.522Z",
    "profile_image_url": "https://i.pravatar.cc/180?u=2user_api_test",
    "last_accepted_profile_name": "Fred"
  },
  "success": true
}