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 Proxy Reference

Registering Users

Before sending a user's data to GeroSense API, you must register this user. Use /user endpoint for it:

POST /api/v1.1/user

Headers

Name
Type
Description

Authorization*

String

Bearer <token>

Content-Type*

String

application/json

Request Body

Name
Type
Description

id*

String

User's unique identifier

biological_sex*

String

User's sex assigned at birth.

Either Male or Female

year_of_birth*

Int

User's year of birth

REQUEST (EXAMPLE)
curl -X 'POST' 'https://<api-proxy-hostname>/api/v1.1/user' \
     -H 'accept: application/json' \
     -H 'Authorization: Bearer <token>' \
     -H 'Content-Type: application/json' \
     -d '{
       "id": "85b4453a-46de-484c-bbc2-12666ebc7ed9",
       "biological_sex": "Female",
       "year_of_birth": 1990
     }'

PreviousChecking API StatusNextSending Users Data

Last updated 1 year ago