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

    oneOf

  • type string required

    Possible values: [public-key, password, totp]

    The type of the credential

  • params object required
  • webauthn_credential_id string required

    The ID of the webauthn credential

  • public_key string required

    Base64-encoded public key

  • attestation_type string required

    The attestation type for the public key (defaults to "none")

  • authenticator object required
  • aaguid string required

    Base64-encoded AAGUID of the authenticator device

  • sign_count integer
  • clone_warning boolean
  • label string
Responses

Created


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

  • id string

    The ID of the credential

  • last_used date-time

    The time when the credential was last used to authenticate successfully

  • type string

    Possible values: [public-key, password, totp]

    The type of the credential

  • params object
  • webauthn_credential_id string

    The ID of the webauthn credential

  • public_key string

    Base64-encoded public key

  • attestation_type string

    The attestation type for the public key (defaults to "none")

  • authenticator object
  • aaguid string

    Base64-encoded AAGUID of the authenticator device

  • sign_count integer
  • clone_warning boolean
  • label string