users

Current user channel

get/users/current

Request

Headers

Acceptstring required
Example:application/json; charset=utf-8

Response

suspendedboolean required
teamsstring[] required
_idstring required
lastLoginstring required
abobject required
primaryChannelstring required
usernamestring required
avatarstring required
createdAtstring required
updatedAtstring required

Example response

{
  "suspended": false,
  "teams": [],
  "channels": [
    {
      "profile": {
        "headerImage": "https://cdn.streamelements.com/static/user/profile_header_default.png",
        "title": "leeeeex's profile"
      },
      "provider": "twitch",
      "suspended": false,
      "nullChannel": false,
      "providerEmails": [],
      "lastJWTToken": null,
      "_id": "5b2e2007760aeb7729487dab",
      "email": "email@streamelements.com",
      "avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/b21a7fa5-4f3f-4402-b68f-3545dcc68b90-profile_image-300x300.jpg",
      "verified": false,
      "username": "leeeeex",
      "alias": "leeeeex",
      "displayName": "leeeeex",
      "providerId": "85827806",
      "isPartner": false,
      "broadcasterType": "",
      "ab": [],
      "createdAt": "2018-06-23T10:25:11.733Z",
      "updatedAt": "2018-12-07T17:26:23.792Z",
      "lastLogin": "2018-12-07T17:26:23.79Z",
      "country": "US",
      "role": "owner",
      "moderators": [
        {
          "user": {
            "_id": "5b53229c8f09b957272a404f",
            "username": "keizar",
            "avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/12eb26c7-5cce-40ff-bc0d-cb625143ed08-profile_image-300x300.png"
          },
          "role": "administrator"
        }
      ]
    }
  ],
  "_id": "5b2e2007760aeb6677487daa",
  "lastLogin": "2018-06-23T10:25:11.728Z",
  "ab": {},
  "primaryChannel": "5b2e2007760aeb7729487dab",
  "username": "leeeeex",
  "avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/b21a7fa5-4f3f-4402-b68f-3545dcc68b90-profile_image-300x300.jpg",
  "createdAt": "2018-06-23T10:25:11.732Z",
  "updatedAt": "2018-12-07T08:43:29.014Z"
}

Changes

    • warning

      the optional response header Access-Control-Allow-Credentials removed for the status 200

    • warning

      the optional response header Access-Control-Expose-Headers removed for the status 200

    • warning

      the optional response header ETag removed for the status 200

    • warning

      the optional response header Server removed for the status 200

    • warning

      the optional response header Strict-Transport-Security removed for the status 200

    • warning

      the optional response header X-Content-Type-Options removed for the status 200

    • warning

      the optional response header X-DNS-Prefetch-Control removed for the status 200

    • warning

      the optional response header X-Download-Options removed for the status 200

    • warning

      the optional response header X-Frame-Options removed for the status 200

    • warning

      the optional response header X-Requested-From removed for the status 200

    • warning

      the optional response header X-XSS-Protection removed for the status 200

    • warning

      deleted the header request parameter Content-Type