πŸ™‡Authentication

User signature is required to fetch data

Arrange Data

First, you need to arrange data which will be used to generate message

{
    "owner": "string" // can be address or DID
}

Generate a message

Generate Message to read data

post
/authentication/generate-message
Authorizations
secret-keystringRequired
Body
ownerstringOptional
Responses
200Success
application/json
post
/authentication/generate-message

Generate Access Tokens

Sign the above message using the appropriate address and arrange data in below format

signature is the obtained by signing the above generated message and timestamp is also given in the response of this

timestamp can't be older than 5 minutes

Authenticate the signature

post
/authentication
Authorizations
secret-keystringRequired
Body
ownerstringOptional
signaturestringOptional
timestampintegerOptional
Responses
200Success
application/json
post
/authentication

Authenticate

To authenticate, just include the received accessToken in headers as authorization in format bearer ${accessToken}

Last updated