Skip to content

Using the REST API

Passlock includes a REST API, along with the @passlock/server library to manage your tenancy data. The REST API allows you to:

  • Verify a passkey registration or authentication operation
  • List passkeys in your vault
  • Fetch a passkey from your vault
  • Delete a passkey from your vault
  • Update a passkey in your vault

REST API calls operate on a specific tenancy. You will need your Tenancy ID, along with the relevant API Key. API endpoints are typically prefixed with the Tenancy ID, e.g.

GET https://api.passlock.dev/{tenancyId}/passkeys/ HTTP/1.1

All REST API calls require authentication. Provide your tenancy-specific API Key via a Bearer authorization header:

GET https://api.passlock.dev/{tenancyId}/passkeys/ HTTP/1.1
Authorization: Bearer {apiKey}

REST calls return JSON:

GET https://api.passlock.dev/{tenancyId}/passkeys/ HTTP/1.1
Authorization: Bearer {apiKey}
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json