GeroSense Developer Documentation
  • Getting Started
    • Main Concepts
    • Architecture Overview
    • Getting Authentication Credentials
  • GeroSense API Proxy Reference
    • Setting Up Docker Container
    • Checking API Status
    • Registering Users
    • Sending Users Data
    • Triggering biological age acceleration computations
    • Getting Users Biological Age Acceleration
      • Receiving results via a webhook
      • Receiving results via API polling
    • Getting Users Resilience
  • GeroSense API Reference
    • Requests Authentication
    • Registering Users
    • Sending Users Data
    • Triggering biological age acceleration computations
    • Getting Users Biological Age Acceleration
      • Receiving results via a webhook
      • Receiving results via API polling
    • Getting Users Resilience
Powered by GitBook
  1. GeroSense API Reference

Triggering biological age acceleration computations

Since biological age acceleration computations are resource-intensive, we don't start them automatically on each new sample batch received. There are two options on how to trigger them:

  1. Biological age accelerations will be calculated automatically 5 minutes after receiving the last batch with a user's data.

  2. You can manually trigger these computations when the last batch is sent by calling /bioage/calculate.

POST https://api-b2b.gerosense.ai/api/v2.2/bioage/calculate

Headers

Name
Type
Description

Authorization*

String

Bearer <token>

Content-Type*

String

application/json

Request Body

Name
Type
Description

user_id*

String

User's unique identifier

model_type

String

Model to trigger. Either steps or bpm (for heart rate)

REQUEST (EXAMPLE)
curl -X 'POST' 'https://api-b2b.gerosense.ai/api/v2.2/bioage/calculate' \
     -H 'accept: application/json' \
     -H 'Authorization: Bearer <token>' \
     -H 'Content-Type: application/json' \
     -d '{
       "user_id": "85b4453a-46de-484c-bbc2-12666ebc7ed9",
       "model_type": "steps"
     }'
PreviousSending Users DataNextGetting Users Biological Age Acceleration

Last updated 1 year ago