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>"
}Part of the Create Credential With Code flow.
Creates a one-time-code that can then be used to create a new credential from a place you don’t have access to one of your existing credential.
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>"
}CustomerEmployee)EndUser)Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Code expiration, as an ISO-8601 datetime string or a unix timestamp
Was this page helpful?