Auth
Authentication endpoints
Authorizations
Body
walletstringRequiredExample:
The wallet address of the user
0x10dc9E9fB8DB5F51Cb192407D30c71f02433c810
Responses
201
Nonce generated successfully
application/json
401
Unauthorized.
403
Forbidden.
408
Request timeout.
429
Too many requests.
500
Internal server error
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
walletstringRequiredExample:
The wallet address of the user
0x10dc9E9fB8DB5F51Cb192407D30c71f02433c810
signaturestringRequiredExample:
The signature generated by the user`s wallet
0x220434085f5213628bd60f96483bcca16408a5b0135aedcc90c4d44e414a9ef109c349e27f8614367196c8e51a9251647a839eb3638bcb5439bcf1e738b937ad1b
noncestringRequiredExample:
The nonce used to generate the signature
1
Responses
201
Access token generated successfully
application/json
401
Unauthorized.
403
Forbidden.
408
Request timeout.
429
Too many requests.
500
Internal server error
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
401
Unauthorized.
403
Forbidden.
408
Request timeout.
429
Too many requests.
500
Internal server error
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
401
Unauthorized.
403
Forbidden.
408
Request timeout.
429
Too many requests.
500
Internal server error
post
POST /api/v1/auth/logout HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
No content