v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Service Accounts

List service accounts.

Enterprise feature

Returns the list of all service accounts.

get/api/admin/service-account

Response

#/components/schemas/serviceAccountsSchema

Example response

{
  "serviceAccounts": [
    {
      "id": 54321,
      "name": "My Service Account",
      "email": "noemail@getunleash.io",
      "username": "my-service-account",
      "imageUrl": "https://example.com/my-service-account.png",
      "inviteLink": "https://example.com/invite-link",
      "rootRole": 1,
      "createdAt": "2021-01-01T00:00:00.000Z",
      "tokens": [
        {
          "id": 1,
          "secret": "user:xyzrandomstring",
          "createdAt": "2023-04-19T08:15:14.000Z",
          "seenAt": "2023-04-19T08:15:14.000Z",
          "userId": 1337,
          "description": "user:xyzrandomstring",
          "expiresAt": "2023-04-19T08:15:14.000Z"
        }
      ]
    }
  ],
  "rootRoles": [
    {
      "id": 9,
      "type": "root",
      "name": "Editor",
      "description": "Users with the editor role have access to most features in Unleash but can not manage users and roles in the global scope. Editors will be added as project owners when creating projects and get superuser rights within the context of these projects. Users with the editor role will also get access to most permissions on the default project by default.",
      "project": "default"
    }
  ]
}