Reference

Definitions

Accounts and Environments

Since WebAuthn credentials are tied to an Origin domain, when you register an account on your production website you won’t be able to login as them elsewhere. To allow for local development, 0x57 Workspaces allow for multiple Environments to be defined, each with its own WebAuthn Origin.

API URL and Version

All requests to the 0x57 API should target https://www.0x57.dev/api/<version>/<endpoint>. There is no default API version.

The currently supported API versions are:

  1. alpha

Authentication

All requests must have the Content-Type header set to application/json and the Authorization header set to your Environment token.

Errors

All API responses will have the following shape if successful:

{
  "success": true,
  // ...
}

And the following shape if there was an error:

{
  "success": false,
  "error": "Message"
}

Standard HTTP response types are supported.