Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
System Setup
APIs to manage Advance system setup Please do not use, only admins
GET api/setup/migrate
Example request:
curl --request GET \
--get "http://localhost:8000/api/setup/migrate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost:8000/api/setup/migrate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"message": "migrated successfully!",
"data": 0
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/setup/rollback
Example request:
curl --request GET \
--get "http://localhost:8000/api/setup/rollback" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost:8000/api/setup/rollback"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
{
"message": "migrated successfully!",
"data": 0
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/setup/vr-clear
Example request:
curl --request GET \
--get "http://localhost:8000/api/setup/vr-clear" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost:8000/api/setup/vr-clear"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 60
access-control-allow-origin: *
{
"message": "migrated successfully!"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/setup/seeder
Example request:
curl --request GET \
--get "http://localhost:8000/api/setup/seeder" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost:8000/api/setup/seeder"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"message": "seeded successfully!",
"data": 0
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/setup/link-storage
Example request:
curl --request GET \
--get "http://localhost:8000/api/setup/link-storage" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost:8000/api/setup/link-storage"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
{
"message": "storage linked successfully!",
"data": 0
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User Authentication
APIs to manage users Authentication
POST api/register
Example request:
curl --request POST \
"http://localhost:8000/api/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkM2E0YTllYjY0OTk0YzUxM2YyYzhlMGMwMTY1MzEzN2U5NTg3Y2EiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcXVpY2stY29sbGVjdC05OTZmMiIsImF1ZCI6InF1aWNrLWNvbGxlY3QtOTk2ZjIiLCJhdXRoX3RpbWUiOjE2ODU0MDgwNDYsInVzZXJfaWQiOiJONGNCTlNrZGsxYnFhSjVlVTM5UENrUmRvazMyIiwic3ViIjoiTjRjQk5Ta2RrMWJxYUo1ZVUzOVBDa1Jkb2szMiIsImlhdCI6MTY4NTQwODA0NiwiZXhwIjoxNjg1NDExNjQ2LCJlbWFpbCI6ImFkbWluQGZsaXBsaXN0LmlvdCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicGhvbmVfbnVtYmVyIjoiKzIzNDgxMTU4MTE4NjkiLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7InBob25lIjpbIisyMzQ4MTE1ODExODY5Il0sImVtYWlsIjpbImFkbWluQGZsaXBsaXN0LmlvdCJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.Wmay2hq99Tv8F3iv6iZn3P-V4JC-xVYQZ8_aJ1yLHSzjQcYjPC22uS4LnAQn8uOIc2gS9VIBhx1y_-q0nbXxgSGbWE6tAIJhkt13434pNqty3hEueBWDufkqA3d8fN5ACeBU-PNVJLsaNxRqj5LdrgmuzrzVJ14qw90jtoDU7-0Tp0WJJ0TmudhMJbdkc4ALr-RwJERf4p7kpB8HP-BzmuWjmRC7EegLxYcGYt5HOFmmCURQIS0VDfGuwUBO6gomFqyFB8iMLcuQqEkYPWmds9ezKJLzS27tohH33lXibGHRz1y2k58zZUWh93rpAYjET12i-bN_eLxYLD8RwfVPyw\",
\"name\": \"John Doe\"
}"
const url = new URL(
"http://localhost:8000/api/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkM2E0YTllYjY0OTk0YzUxM2YyYzhlMGMwMTY1MzEzN2U5NTg3Y2EiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcXVpY2stY29sbGVjdC05OTZmMiIsImF1ZCI6InF1aWNrLWNvbGxlY3QtOTk2ZjIiLCJhdXRoX3RpbWUiOjE2ODU0MDgwNDYsInVzZXJfaWQiOiJONGNCTlNrZGsxYnFhSjVlVTM5UENrUmRvazMyIiwic3ViIjoiTjRjQk5Ta2RrMWJxYUo1ZVUzOVBDa1Jkb2szMiIsImlhdCI6MTY4NTQwODA0NiwiZXhwIjoxNjg1NDExNjQ2LCJlbWFpbCI6ImFkbWluQGZsaXBsaXN0LmlvdCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicGhvbmVfbnVtYmVyIjoiKzIzNDgxMTU4MTE4NjkiLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7InBob25lIjpbIisyMzQ4MTE1ODExODY5Il0sImVtYWlsIjpbImFkbWluQGZsaXBsaXN0LmlvdCJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.Wmay2hq99Tv8F3iv6iZn3P-V4JC-xVYQZ8_aJ1yLHSzjQcYjPC22uS4LnAQn8uOIc2gS9VIBhx1y_-q0nbXxgSGbWE6tAIJhkt13434pNqty3hEueBWDufkqA3d8fN5ACeBU-PNVJLsaNxRqj5LdrgmuzrzVJ14qw90jtoDU7-0Tp0WJJ0TmudhMJbdkc4ALr-RwJERf4p7kpB8HP-BzmuWjmRC7EegLxYcGYt5HOFmmCURQIS0VDfGuwUBO6gomFqyFB8iMLcuQqEkYPWmds9ezKJLzS27tohH33lXibGHRz1y2k58zZUWh93rpAYjET12i-bN_eLxYLD8RwfVPyw",
"name": "John Doe"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/login
Example request:
curl --request POST \
"http://localhost:8000/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkM2E0YTllYjY0OTk0YzUxM2YyYzhlMGMwMTY1MzEzN2U5NTg3Y2EiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcXVpY2stY29sbGVjdC05OTZmMiIsImF1ZCI6InF1aWNrLWNvbGxlY3QtOTk2ZjIiLCJhdXRoX3RpbWUiOjE2ODU0MDgwNDYsInVzZXJfaWQiOiJONGNCTlNrZGsxYnFhSjVlVTM5UENrUmRvazMyIiwic3ViIjoiTjRjQk5Ta2RrMWJxYUo1ZVUzOVBDa1Jkb2szMiIsImlhdCI6MTY4NTQwODA0NiwiZXhwIjoxNjg1NDExNjQ2LCJlbWFpbCI6ImFkbWluQGZsaXBsaXN0LmlvdCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicGhvbmVfbnVtYmVyIjoiKzIzNDgxMTU4MTE4NjkiLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7InBob25lIjpbIisyMzQ4MTE1ODExODY5Il0sImVtYWlsIjpbImFkbWluQGZsaXBsaXN0LmlvdCJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.Wmay2hq99Tv8F3iv6iZn3P-V4JC-xVYQZ8_aJ1yLHSzjQcYjPC22uS4LnAQn8uOIc2gS9VIBhx1y_-q0nbXxgSGbWE6tAIJhkt13434pNqty3hEueBWDufkqA3d8fN5ACeBU-PNVJLsaNxRqj5LdrgmuzrzVJ14qw90jtoDU7-0Tp0WJJ0TmudhMJbdkc4ALr-RwJERf4p7kpB8HP-BzmuWjmRC7EegLxYcGYt5HOFmmCURQIS0VDfGuwUBO6gomFqyFB8iMLcuQqEkYPWmds9ezKJLzS27tohH33lXibGHRz1y2k58zZUWh93rpAYjET12i-bN_eLxYLD8RwfVPyw\"
}"
const url = new URL(
"http://localhost:8000/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkM2E0YTllYjY0OTk0YzUxM2YyYzhlMGMwMTY1MzEzN2U5NTg3Y2EiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcXVpY2stY29sbGVjdC05OTZmMiIsImF1ZCI6InF1aWNrLWNvbGxlY3QtOTk2ZjIiLCJhdXRoX3RpbWUiOjE2ODU0MDgwNDYsInVzZXJfaWQiOiJONGNCTlNrZGsxYnFhSjVlVTM5UENrUmRvazMyIiwic3ViIjoiTjRjQk5Ta2RrMWJxYUo1ZVUzOVBDa1Jkb2szMiIsImlhdCI6MTY4NTQwODA0NiwiZXhwIjoxNjg1NDExNjQ2LCJlbWFpbCI6ImFkbWluQGZsaXBsaXN0LmlvdCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicGhvbmVfbnVtYmVyIjoiKzIzNDgxMTU4MTE4NjkiLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7InBob25lIjpbIisyMzQ4MTE1ODExODY5Il0sImVtYWlsIjpbImFkbWluQGZsaXBsaXN0LmlvdCJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.Wmay2hq99Tv8F3iv6iZn3P-V4JC-xVYQZ8_aJ1yLHSzjQcYjPC22uS4LnAQn8uOIc2gS9VIBhx1y_-q0nbXxgSGbWE6tAIJhkt13434pNqty3hEueBWDufkqA3d8fN5ACeBU-PNVJLsaNxRqj5LdrgmuzrzVJ14qw90jtoDU7-0Tp0WJJ0TmudhMJbdkc4ALr-RwJERf4p7kpB8HP-BzmuWjmRC7EegLxYcGYt5HOFmmCURQIS0VDfGuwUBO6gomFqyFB8iMLcuQqEkYPWmds9ezKJLzS27tohH33lXibGHRz1y2k58zZUWh93rpAYjET12i-bN_eLxYLD8RwfVPyw"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User KYC
APIs to manage users KYC Validation
POST api/kyc/register
Example request:
curl --request POST \
"http://localhost:8000/api/kyc/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost:8000/api/kyc/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.