GET /api/admin/v1/users/:user_id/user_logins
List of user logins

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "user_name": "Vadim Kruchina",
  "user_logins": [
    {
      "id": 1,
      "admin_name": "Stone Wood",
      "created_at": "2022-08-11T15:49:25.542Z"
    },
    ...
  ],
  "meta": {
    total_count: 5
  }
}

Params

Param name Description
user_id
required

Validations:

  • Must be a Integer


POST /api/admin/v1/users/:user_id/user_logins
Login As

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 14,
  "email": "kruchina.vadim@gmail.com",
  "first_name": "Vadim",
  "last_name": "Kruchina",
  "role_in_organization": "Role",
  "state": "CA",
  "city": "Los Angeles",
  "avatar_image": "https://gipper-college-logos-development.s3.amazonaws.com/s3_key",
  "auth_token": "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNCwiZXhwIjoxNjU5MjU3Nzk1fQ.dxcqT4_SighZdUUmIiFU4b-_1S9SEj6xf_OSgxOGo1Y",
  "workspace_role": {
    "id": 1,
    "name": "owner"
  },
  "workspace": {
    "id": 1,
    "name": "updated2",
    "trial_type": "Two-week",
    "trial_status": "in_progress",
    "plan": [
        "free"
    ],
    "subscribed": false
  },
  "payment_sources": [
    {
      "id": 1,
      "last_4": "4242",
      "expiration_month": 3,
      "expiration_year": 2023
    },
    {
      "id": 2,
      "last_4": "4242",
      "expiration_month": 3,
      "expiration_year": 2023
    }
  ],
  "hidden_notifications": []
}

Params

Param name Description
user_id
required

Validations:

  • Must be a Integer