Skip to main content
GET
/
auth
/
service-accounts
List Service Accounts
curl --request GET \
  --url https://api.dfns.io/auth/service-accounts \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "userInfo": {
        "username": "<string>",
        "name": "<string>",
        "userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
        "kind": "CustomerEmployee",
        "credentialUuid": "<string>",
        "orgId": "<string>",
        "permissions": [
          "<string>"
        ],
        "isActive": true,
        "isServiceAccount": true,
        "isRegistered": true,
        "permissionAssignments": [
          {
            "permissionName": "<string>",
            "permissionId": "<string>",
            "assignmentId": "<string>",
            "operations": [
              "<string>"
            ]
          }
        ]
      },
      "accessTokens": [
        {
          "accessToken": "<string>",
          "dateCreated": "<string>",
          "credId": "<string>",
          "isActive": true,
          "kind": "Pat",
          "linkedUserId": "<string>",
          "linkedAppId": "<string>",
          "name": "<string>",
          "orgId": "<string>",
          "permissionAssignments": [
            {
              "permissionName": "<string>",
              "permissionId": "<string>",
              "assignmentId": "<string>",
              "operations": [
                "<string>"
              ]
            }
          ],
          "publicKey": "<string>",
          "tokenId": "<string>"
        }
      ]
    }
  ]
}

Authentication

✅ Organization User (CustomerEmployee)
❌ Delegated User (EndUser)
✅ Service Account

Required Permissions

Auth:ServiceAccounts:Read: Always required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

Response

200 - application/json

Success

items
object[]
required
I