Skip to main content
POST
/
auth
/
credentials
/
code
Create Credential Code
curl --request POST \
  --url https://api.dfns.io/auth/credentials/code \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-DFNS-USERACTION: <api-key>' \
  --data '{
  "expiration": "2023-11-07T05:31:56Z"
}'
{
  "code": "<string>",
  "expiration": "<string>"
}

Authentication

✅ Organization User (CustomerEmployee)
✅ Delegated User (EndUser)
❌ Personal Access Token not allowed
❌ Service Account

Required Permissions

No permission required.

Authorizations

Authorization
string
header
required
X-DFNS-USERACTION
string
header
required

Body

application/json
expiration
required

Response

200 - application/json
code
string
required
expiration
string
required