Skip to main content
GET
/
auth
/
service-accounts
/
{serviceAccountId}
Get Service Account
curl --request GET \
  --url https://api.dfns.io/auth/service-accounts/{serviceAccountId} \
  --header 'Authorization: Bearer <token>'
{
  "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

Path Parameters

serviceAccountId
string
required
Minimum length: 1

Response

200 - application/json

Success

userInfo
object
required
accessTokens
object[]
required
I