Skip to main content
DELETE
/
auth
/
pats
/
{tokenId}
Delete Personal Access Token
curl --request DELETE \
  --url https://api.dfns.io/auth/pats/{tokenId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-DFNS-USERACTION: <api-key>'
{
  "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

No permission required.

Authorizations

Authorization
string
header
required

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

X-DFNS-USERACTION
string
header
required

User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows

Path Parameters

tokenId
string
required
Minimum length: 1

Response

200 - application/json

Success

dateCreated
string
required
credId
string
required
isActive
boolean
required
kind
enum<string>
required

Access token kind.

Available options:
Pat,
ServiceAccount,
Token,
Code,
Recovery,
Temp,
Application
linkedUserId
string
required
linkedAppId
string
required
name
string
required
orgId
string
required
permissionAssignments
object[]
required
publicKey
string
required
tokenId
string
required
accessToken
string
I