Reference
Definitions
- Workspace: A 0x57 project.
- Environment: A collection of users within a Workspace.
- Account: A user account registered to an Environment.
- Credential: A credential is an Account’s WebAuthn generated credential.
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:
- 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:
And the following shape if there was an error:
Standard HTTP response types are supported.