Presence API endpoints

The following are the available endpoints through the Presence API. If you use the PresenceUser object in your front-end code, you will only need the submit endpoints. If you construct your own front-end code, you will need all endpoints.

WebAuth Register Init

POST https://presence.mioko.tech/api/webauth-register-init

This endpoint retrieves a set of options for use in navigator.credentials.create.

Request Body

NameTypeDescription

apiKey

string

The public key for the domain

uuid

string

The UUID to use for the current user

{
    "value": "example.com" 
}

WebAuth Register Submit

POST https://presence.mioko.tech/api/webauth-register-submit

Request Body

NameTypeDescription

secretKey

string

The secret key for your domain

apiKey

string

The public key for your domain

uuid

string

The UUID for the user

credential

string

The created credential for the user

WebAuth Login Init

POST https://presence.mioko.tech/api/webauth-login-init

Request Body

NameTypeDescription

apiKey

string

uuid

string

secret

    

WebAuth Login Submit

POST https://presence.mioko.tech/api/webauth-login-submit

Request Body

NameTypeDescription

apiKey

string

uuid

string

credential

string

Last updated