Requests Authentication

Each request you send to GeroSense API must be signed with an authentication token. To receive a new token, use /login/access-token endpoint.

POST https://api-b2b.gerosense.ai/api/v1.0/login/access-token

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

username*

The username that we provided you with

password*

String

The password that we provided you with

REQUEST (EXAMPLE)
curl -X 'POST' 'https://api-b2b.gerosense.ai/api/v1.0/login/access-token' \
     -H 'Content-Type: application/x-www-form-urlencoded' \
     -d 'username=<username>&password=<password>'
200 – RESPONSE (EXAMPLE)
{
  "access_token": "<token>",
  "token_type": "Bearer"
}

Once you have the token, add it in the Authorization header of all subsequent requests as shown below:

curl -X 'POST' 'https://api-b2b.gerosense.ai/api/v1.0/login/test-token' \
     -H 'accept: application/json' \
     -H 'Authorization: Bearer <token>'

Last updated