Table of Contents
Login Endpoint #
Authentication to the QCentroid Platform API is done through the following endpoint:
POST https://api.qcentroid.xyz/login
And providing the following JSON data in the request body:
{
"username": "your-username",
"password": "your-password"
}
The response will be in JSON format, containing the access token and will look like this:
{
"access_token": "eyJ0eXAiOiJKV1 ... iXWgdfolI"
}
CURL examples #
This how the Login request looks like using CURL:
$ curl -X POST https://api.qcentroid.xyz/login -d "{\"username\": \"your-username\", \"password\": \"your-password\"}" -H "Content-Type: application/json"
{"access_token":"eyJhbGciOiJIUz ... KRSgV3qJheUBE"}
Postman examples #
This is how the Login request looks like in Postman:

In the figure above you can see:
- The reqest body containing the username and password in JSON format.
- The JSON response with the
access_token
to be used in the following requests as a Bearer Token.