POST
/
users
/
{userID}
/
passkeyEvents
Create a passkey event for a user
curl --request POST \
  --url https://backendapi.corbado.io/v2/users/{userID}/passkeyEvents \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "eventType": "user-login-blacklisted",
  "expires": 123,
  "processID": "<string>",
  "clientEnvID": "<string>",
  "credentialID": "<string>",
  "challenge": "<string>"
}'
{
  "passkeyEventID": "<string>",
  "userID": "<string>",
  "eventType": "user-login-blacklisted",
  "clientEnvID": "<string>",
  "processID": "<string>",
  "credentialID": "<string>",
  "expires": 123,
  "created": "<string>",
  "createdMs": 123
}

Authorizations

Authorization
string
header
required

Basic authentication is used to authenticate requests to the Backend API. The username is the project ID and the password is the API secret.

The project ID and API secret can be found in the Developer Panel.

Path Parameters

userID
string
required

Unique identifier of the user. Format: usr-<number>.

Example:

"usr-4693224802260150919"

Body

application/json
eventType
enum<string>
required
Available options:
user-login-blacklisted,
login-explicit-abort,
login-error,
login-error-untyped,
login-one-tap-switch,
user-append-after-cross-platform-blacklisted,
user-append-after-login-error-blacklisted,
append-credential-exists,
append-explicit-abort,
append-error,
login-no-credentials
expires
integer
processID
string
clientEnvID
string
credentialID
string
challenge
string

Response

Passkey event has been created.

passkeyEventID
string
required
userID
string
required

ID of the user

eventType
enum<string>
required
Available options:
user-login-blacklisted,
login-explicit-abort,
login-error,
login-error-untyped,
login-one-tap-switch,
user-append-after-cross-platform-blacklisted,
user-append-after-login-error-blacklisted,
append-credential-exists,
append-explicit-abort,
append-error,
login-no-credentials
created
string
required

Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format

createdMs
integer
required
clientEnvID
string
processID
string
credentialID
string
expires
integer