LoguDocs
Open Logu

Sign-in · passkeySignIn

Sign in with a passkey

POST /api/auth/passkeys/sign-in

Verifies the authenticator's response; the session token is in set-auth-token.

Who may call it
Anyone (no credentials)
Server
https://api.logu.dev

Request body#

Content type application/json (required).

FieldTypeRequiredNotes
responseobjectrequiredThe authenticator's response (startRegistration / startAuthentication).
challengeTokenstringrequired16–1000 chars
namestringoptionalRegistration only: a name (≤ 64).
{
  "response": {
    "id": "cred"
  },
  "challengeToken": "aS7dQ2xLp9Vt4mKz.signature"
}

Example#

curl -s -X POST "https://api.logu.dev/api/auth/passkeys/sign-in" \
  -H "Content-Type: application/json" \
  -d '{"response":{"id":"cred"},"challengeToken":"aS7dQ2xLp9Vt4mKz.signature"}'

Responses#

200

Signed in.

{
  "ok": true
}
Response fields
FieldTypeRequiredNotes
oktruerequired

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
400unknown_fieldThe body has a field the endpoint doesn't know (often a typo or snake_case).
400bad_requestThe request is malformed or a field is invalid (see issues).
429rate_limitedThis API key sent too many requests, or a human did too much too fast: sign-in attempts, workspaces created in a day, or a global daily cap on new accounts was reached.
500internal_errorSomething went wrong on Logu's side.