This is the official documentation of HelioAuth Passkeys API. It provides a simple interface for user authentication with WebAuthn passkeys.
Start by creating an application at /admin/v1/apps. Then, get its API key from /admin/v1/apps/{id}/api-key.
(Can be called from the browser)
Generates a challenge ready to be passed to navigator.credentials.create(options)
name required | string Username to be registered. This can also be an identifier or an email address. |
requestId | string Unique identifier for the sign-up request. |
options | string Options to pass to |
{- "name": "string"
}
{- "requestId": "string",
- "options": "string"
}
Completes the sign-up process by verifying the attestation and registering the new credential.
requestId | string Unique identifier for the sign-up request (from |
publicKeyCredential | string The result of |
requestId | string Unique identifier for the sign-up request. |
userId | string <uuid> Unique identifier for the newly registered user. |
{- "requestId": "string",
- "publicKeyCredential": "string"
}
{- "requestId": "string",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}
(Can be called from the browser)
Generates a challenge ready to be passed to navigator.credentials.get(options)
.
name | string Name of the user attempting to sign in. |
requestId | string Unique identifier for the sign-in request. |
options | string Options for assertion to pass to |
{- "name": "string"
}
{- "requestId": "string",
- "options": "string"
}
Validates the credential response from the client and returns the user's identifier.
requestId | string Unique identifier for the sign-in request (returned by |
publicKeyCredentialWithAssertion | string The result of |
requestId | string Unique identifier for the sign-in request. |
username | string Username of the entity that signed in. |
{- "requestId": "string",
- "publicKeyCredentialWithAssertion": "string"
}
{- "requestId": "string",
- "username": "string"
}
Initiates the process of adding a new passkey to a user's account.
name required | string Username to be registered. This can also be an identifier or an email address. |
requestId | string Unique identifier for the sign-up request. |
options | string Options to pass to |
{- "name": "string"
}
{- "requestId": "string",
- "options": "string"
}
Completes the process of adding a new passkey to a user's account.
requestId | string Unique identifier for the sign-up request (from |
publicKeyCredential | string The result of |
requestId | string Unique identifier for the sign-up request. |
userId | string <uuid> Unique identifier for the newly registered user. |
{- "requestId": "string",
- "publicKeyCredential": "string"
}
{- "requestId": "string",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}
Retrieves a list of credentials associated with a specific user by UUID.
uuid required | string <uuid> |
Array of objects (PasskeyCredential) A list of user credentials. |
{- "passkeys": [
- {
- "credentialId": "string",
- "userHandle": "string",
- "signatureCount": 0,
- "displayName": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "lastUsedAt": "2019-08-24T14:15:22Z"
}
]
}
Retrieves a list of all applications.
id | string <uuid> Unique identifier for the application. |
name | string Name of the application. |
createdAt | string <date-time> Timestamp when the application was created. |
updatedAt | string <date-time> Timestamp when the application was last updated. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Creates a new application and returns its details.
name | string Name of the new application. |
id | string <uuid> Unique identifier for the application. |
name | string Name of the application. |
createdAt | string <date-time> Timestamp when the application was created. |
updatedAt | string <date-time> Timestamp when the application was last updated. |
{- "name": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Retrieves details of a specific application by its ID.
id required | string <uuid> |
id | string <uuid> Unique identifier for the application. |
name | string Name of the application. |
createdAt | string <date-time> Timestamp when the application was created. |
updatedAt | string <date-time> Timestamp when the application was last updated. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Updates the name of a specific application by its ID.
id required | string <uuid> |
id | string <uuid> Unique identifier for the application. |
name | string Name of the application. |
createdAt | string <date-time> Timestamp when the application was created. |
updatedAt | string <date-time> Timestamp when the application was last updated. |
"string"
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Retrieves the API key of a specific application by its ID.
id required | string <uuid> |
apiKey | string API key for the client application. |
{- "apiKey": "string"
}