{ "opencollection": "1.0.0", "info": { "name": "Stytch B2B Authentication Application WebAuthn API", "version": "2.0.0" }, "items": [ { "info": { "name": "WebAuthn", "type": "folder" }, "items": [ { "info": { "name": "Registerstart", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/webauthn/register/start", "body": { "type": "json", "data": "{}" } }, "docs": "Initiate the process of creating a new Passkey or WebAuthn registration. \n\nTo optimize for Passkeys, set the `return_passkey_credential_options` field to `true`.\n\nAfter calling this endpoint, the browser will need to call [navigator.credentials.create()](https://www.w3.org/TR/webauthn-2/#sctn-createCredential) with the data from [public_key_credential_creation_options](https://w3c.github.io/webauthn/#dictionary-makecredentialoptions) passed to the [navigator.credentials.create()](https://www.w3." }, { "info": { "name": "Register", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/webauthn/register", "body": { "type": "json", "data": "{}" } }, "docs": "Complete the creation of a WebAuthn registration by passing the response from the [navigator.credentials.create()](https://www.w3.org/TR/webauthn-2/#sctn-createCredential) request to this endpoint as the `public_key_credential` parameter. \n\nSee our [WebAuthn setup guide](https://stytch.com/docs/guides/webauthn/api) for additional usage instructions and example code." }, { "info": { "name": "Authenticatestart", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/webauthn/authenticate/start", "body": { "type": "json", "data": "{}" } }, "docs": "Initiate the authentication of a Passkey or WebAuthn registration. \n\nTo optimize for Passkeys, set the `return_passkey_credential_options` field to `true`.\n\nAfter calling this endpoint, the browser will need to call [navigator.credentials.get()](https://www.w3.org/TR/webauthn-2/#sctn-getAssertion) with the data from `public_key_credential_request_options` passed to the [navigator.credentials.get()](https://www.w3.org/TR/webauthn-2/#sctn-getAssertion) request via the public key argument.\n\nWhen us" }, { "info": { "name": "Authenticate", "type": "http" }, "http": { "method": "POST", "url": "https://api.stytch.com/v1/webauthn/authenticate", "body": { "type": "json", "data": "{}" } }, "docs": "Complete the authentication of a Passkey or WebAuthn registration by passing the response from the [navigator.credentials.get()](https://www.w3.org/TR/webauthn-2/#sctn-getAssertion) request to the authenticate endpoint. \n\nSee our [WebAuthn setup guide](https://stytch.com/docs/guides/webauthn/api) for additional usage instructions and example code." }, { "info": { "name": "Update", "type": "http" }, "http": { "method": "PUT", "url": "https://api.stytch.com/v1/webauthn/:webauthn_registration_id", "params": [ { "name": "webauthn_registration_id", "value": "", "type": "path", "description": "Globally unique UUID that identifies a Passkey or WebAuthn registration in the Stytch API. The `webauthn_registration_id` is used when you need to operate on a specific User's WebAuthn registration." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a Passkey or WebAuthn registration." }, { "info": { "name": "Listcredentials", "type": "http" }, "http": { "method": "GET", "url": "https://api.stytch.com/v1/webauthn/credentials/:user_id/:domain", "params": [ { "name": "user_id", "value": "", "type": "path", "description": "The `user_id` of an active user the Passkey or WebAuthn registration should be tied to." }, { "name": "domain", "value": "", "type": "path", "description": "The domain for Passkeys or WebAuthn. Defaults to `window.location.hostname`." } ] }, "docs": "List the public key credentials of the WebAuthn Registrations or Passkeys registered to a specific User." } ] } ], "bundled": true }