Help & Documentation

Learn how to use Smart Stacks, Smart Fuel, and other tools to optimize your health and fitness journey with evidence-based approaches.

API Documentation

Integrate Sighed Effects tools and data into your applications with our RESTful API. Access supplement data, calculations, and recommendations programmatically.

Getting Started

API Access

API access is currently in beta and available to select partners and developers. Full public API access will be available with premium memberships in the future.

Request API Access

To request API access for your project, contact our development team with details about your intended use case and integration requirements.

Request Access

Base URL

https://labs.sighedeffects.com/api/

Authentication

The API uses JWT (JSON Web Tokens) for authentication. Include your token in the Authorization header:

Authorization: Bearer your-jwt-token-here

Available Endpoints

Search & Data

Search Supplements

GET

Search supplements using fuzzy matching

GET /api/search-supplements?q=creatine

Advanced Search

GET

Search with multiple parameters and filters

GET /api/search-advanced?q=protein&category=muscle&limit=10

User Management

Get User Profile

GET

Retrieve user profile and preferences

GET /api/members/profile

Update User Profile

PUT

Update user profile information

PUT /api/members/profile

Calculations

TDEE Calculator

POST

Calculate Total Daily Energy Expenditure

POST /api/calculate/tdee

Generate Smart Stack

POST

Generate personalized supplement recommendations

POST /api/stacks/generate

Request/Response Examples

TDEE Calculation Example

Request

{
  "age": 30,
  "gender": "male",
  "weight": 180,
  "height": 72,
  "activity_level": "moderately_active",
  "goal": "maintenance"
}

Response

{
  "bmr": 1890,
  "tdee": 2605,
  "goal_calories": 2605,
  "macros": {
    "protein": 180,
    "carbs": 325,
    "fat": 87
  },
  "calculation_id": "tdee_123456"
}

Supplement Search Example

Request

GET /api/search-supplements?q=creatine&limit=3

Response

{
  "results": [
    {
      "id": 1,
      "name": "Creatine Monohydrate",
      "score": 95
    },
    {
      "id": 2, 
      "name": "Creatine HCL",
      "score": 87
    }
  ],
  "total_results": 2,
  "low_confidence": false
}

Error Handling

HTTP Status Codes

200 OK Request successful
400 Bad Request Invalid request parameters
401 Unauthorized Authentication required
429 Too Many Requests Rate limit exceeded
500 Internal Server Error Server error

Error Response Format

{
  "error": "Invalid input parameters",
  "code": "VALIDATION_ERROR",
  "details": {
    "field": "age",
    "message": "Age must be between 18 and 80"
  }
}

Rate Limits

Current Limits

  • Search endpoints: 100 requests per hour
  • Calculation endpoints: 50 requests per hour
  • User management: 20 requests per hour
  • All endpoints: 200 total requests per hour

Rate limits are per API key. Contact us if you need higher limits for your application.

SDKs and Libraries

Official SDKs and community libraries are in development. Currently, the API can be accessed using standard HTTP clients in any programming language.

JavaScript SDK

Coming Soon

Python SDK

In Development

Support

Contact Us