ShakaPT API Documentation

Build powerful fitness applications with our comprehensive REST API. Access AI workouts, nutrition analysis, progress tracking, and more.

Quick Start

1
Get API Key

Create an account and generate your API key from the developer dashboard.

curl -X POST https://api.shakapt.com/auth/api-key \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json"

2
Make Your First Request

Test the API with a simple user profile request.

curl -X GET https://api.shakapt.com/users/profile \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json"

3
Generate AI Workout

Create a personalized workout using our AI engine.

curl -X GET https://api.shakapt.com/workouts/generate \ -H "X-API-Key: YOUR_API_KEY" \ -G -d "user_id=123" -d "difficulty=intermediate"

API Endpoints

Authentication
4 endpoints

Secure user authentication and authorization

POST
/auth/login
User login with credentials
POST
/auth/register
Create new user account
POST
/auth/refresh
Refresh access token
POST
/auth/logout
User logout

User Management
4 endpoints

Manage user profiles and family accounts

GET
/users/profile
Get user profile information
PUT
/users/profile
Update user profile
GET
/users/family
Get family member profiles
POST
/users/family/member
Add family member

AI Workouts
4 endpoints

AI-generated personalized workout plans

GET
/workouts/generate
Generate AI workout plan
GET
/workouts/history
Get workout history
POST
/workouts/log
Log completed workout
PUT
/workouts/{id}/feedback
Provide workout feedback

Nutrition
4 endpoints

Nutrition tracking and meal planning

POST
/nutrition/analyze-photo
Analyze food photo for nutrition
GET
/nutrition/meal-plan
Get AI meal plan
POST
/nutrition/log-meal
Log meal consumption
GET
/nutrition/insights
Get nutrition insights

Progress Tracking
4 endpoints

Track fitness progress and analytics

GET
/progress/stats
Get progress statistics
POST
/progress/measurement
Log body measurements
GET
/progress/charts
Get progress charts data
POST
/progress/photo
Upload progress photo

Health Integration
4 endpoints

Integrate with health devices and apps

POST
/health/sync/fitbit
Sync Fitbit data
POST
/health/sync/apple
Sync Apple Health data
GET
/health/devices
Get connected devices
DELETE
/health/devices/{id}
Disconnect device

Official SDKs

🟨

JavaScript

Official Node.js/Browser SDK

npm install @shakapt/sdk
🐍

Python

Official Python SDK

pip install shakapt-sdk
⚛️

React Native

Mobile SDK for React Native

npm install @shakapt/react-native
🍎

Swift

iOS SDK for Swift

Swift Package Manager

API Status

API Health
Operational
Response Time~120ms
Uptime99.9%

Rate Limits

Free Tier1,000/hour
Pro Tier10,000/hour
EnterpriseUnlimited

Authentication

API Key

Include in headers as X-API-Key

OAuth 2.0

For user-specific operations

Webhooks

Real-time event notifications

Developer Support

Ready to Build with ShakaPT?

Join thousands of developers building innovative fitness applications with our powerful API. Get started with our free tier and scale as you grow.