Get Details of Currently Logged-In User

You can get information about the currently logged-in user, such as name, email address, account and Workspace identifiers, roles, and URLs.

Get User InfoMinimum Configuration Sample


curl 'https://mock.blazemeter.com/api/v1/user' \
    -X GET \
    -H 'accept: application/json;charset=UTF-8'

Response200 OK

{
  "apiVersion": 1,
  "error": null,
  "result": {
    "user": {
      "displayName": "Bertha Benz",
      "enabled": true,
      "activeAccountId": 23141,
      "preferencesId": "5d31e3793706bc000e179436",
      "activeWorkspaceId": 26208,
      "roles": [
        "user",
        "new-billing",
        "authenticated"
      ],
      "visitedMockServices": true,
      "email": "someone@example.com",
      "userId": 123456,
      "firstName": "Bertha",
      "lastName": "Benz",
      "defaultProjectId": 23456,
      "defaultAccountId": 34567,
      "defaultAccountName": "Default Account",
      "defaultWorkspaceName": "Default workspace",
      "defaultWorkspaceId": 45678,
      "defaultProjectCreatedAt": "2019-07-19T15:36:25Z",
      "account": {
        "features": {
          "enableContainersRoutes": false,
          "privateData": false,
          "enableNTCMockServicesPanel": true
        },
        "hasPrivateLocations": false
      },
      "workspaces": [
        {
          "id": 56789,
          "name": "Default workspace",
          "enabled": true,
          "dedicatedIpsEnabled": true,
          "privateLocationsEnabled": true
        }
      ]
    },
    "config": {
      "mixPanelToken": "352201717d6babc073fc10a878d730ca",
      "blazeMeterAppUrl": "https://a.blazemeter.com//app/",
      "blazeMeterApiUrl": "https://a.blazemeter.com//api/v4/",
      "personalSettingsUrl": "https://a.blazemeter.com//app/personal-settings",
      "logoutUrl": "https://a.blazemeter.com//app/logout",
      "inviteUrl": "https://a.blazemeter.com//app/invite",
      "accountSettingsUrl": "https://a.blazemeter.com//app/#/settings/personal",
      "menu": {
        "performance": "https://a.blazemeter.com//app/performance",
        "functional": "https://a.blazemeter.com//app/functional",
        "runscope": "https://a.blazemeter.com//app/api-monitoring",
        "sv": "https://a.blazemeter.com//app/mock-services"
      }
    }
  },
  "requestId": "fa979b4106ad5497"
}