Skip to main content

Create a new credential

Creates a new credential linked to the specified person in your organization. This credential will then be available for use in future authentication challenges.

Path Parameters
  • person_id string required

    The person ID

    Example: 903c1ff9-f2cc-435c-b242-9d8a690fcf0a
Header Parameters
  • SlashID-OrgID string required

    The organization ID

    Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
Request Body required

The Credential creation request

  • params object

    A set of key-value pair parameters for the credential. The required parameters depend on the type of credential. For public key credentials, the following are required:

    • PublicKey : base64-encoded public key
    • AttestationType : should be "public-key" for public keys
    • Authenticator : a map of key-value pairs, including the key "AAGUID" mapped to the base64-encoded AAGUID of the authenticator device
  • type string required

    Possible values: [public-key]

    The type of the credential

  • label string
Responses

Created


Schema
  • meta object
  • pagination object
  • limit integer
  • offset integer
  • total_count int64
  • errors object[]
  • httpcode integer
  • message string
  • result object
  • params object

    A set of key-value pair parameters for the credential. The required parameters depend on the type of credential. For public key credentials, the following are required:

    • PublicKey : base64-encoded public key
    • AttestationType : should be "public-key" for public keys
    • Authenticator : a map of key-value pairs, including the key "AAGUID" mapped to the base64-encoded AAGUID of the authenticator device
  • type string

    Possible values: [public-key]

    The type of the credential

  • label string
  • id string

    The ID of the credential

  • last_used date-time

    The time when the credential was last used to authenticate successfully