Auth

Authentication endpoints

Generate Nonce

post
Authorizations
Body
walletstringRequired

The wallet address of the user

Example: 0x10dc9E9fB8DB5F51Cb192407D30c71f02433c810
Responses
201
Nonce generated successfully
application/json
post
POST /api/v1/auth/nonce HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 55

{
  "wallet": "0x10dc9E9fB8DB5F51Cb192407D30c71f02433c810"
}
{
  "data": {
    "nonce": "1"
  }
}
post
Authorizations
Body
walletstringRequired

The wallet address of the user

Example: 0x10dc9E9fB8DB5F51Cb192407D30c71f02433c810
signaturestringRequired

The signature generated by the user`s wallet

Example: 0x220434085f5213628bd60f96483bcca16408a5b0135aedcc90c4d44e414a9ef109c349e27f8614367196c8e51a9251647a839eb3638bcb5439bcf1e738b937ad1b
noncestringRequired

The nonce used to generate the signature

Example: 1
Responses
201
Access token generated successfully
application/json
post
POST /api/v1/auth/sign-in HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 214

{
  "wallet": "0x10dc9E9fB8DB5F51Cb192407D30c71f02433c810",
  "signature": "0x220434085f5213628bd60f96483bcca16408a5b0135aedcc90c4d44e414a9ef109c349e27f8614367196c8e51a9251647a839eb3638bcb5439bcf1e738b937ad1b",
  "nonce": "1"
}
{
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
  }
}
post
Authorizations
Responses
200
Successful response
application/json
post
POST /api/v1/auth/refresh HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Accept: */*
{
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
  }
}
post
Authorizations
Responses
201Success
post
POST /api/v1/auth/logout HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Accept: */*

No content