Create Credential Code

POST /auth/credentials/code

Part of the flow Create Credential With Code.

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.

Required Permissions

The permissions apply to the Application only.

NameConditions

Auth:Creds:Create

Always Required (on the Application)

Auth:Creds:Code:Create

Always Required (on the Application)

Request body

PropertyType

expiration *

ISO-8601 Date (String), or Unix epoch (Integer)

Expiration date (as a ISO-8601 date string, or a Unix epoch ) of the code, max is 1 minute in the future. So the code can never be valid for more than 1 minute, which should be enough time for a user to copay/paste the code from one place to the other.

{
  "expiration":"2024-04-18T10:00:31.478Z",
}

Response body

Success

{
  "code":"A7U-KY6-9PT",
  "expiration":"2024-04-18T10:00:31.478Z",
}

Last updated