Documentation for developers
Check API and service health status
{
"status": "healthy",
"timestamp": "2024-12-11T10:00:00.000Z",
"version": "0.2.1",
"services": {
"redis": { "status": "healthy", "latency_ms": 12 },
"openai": { "status": "configured" }
}
}
Get user info, role, and credits
Authorization: Bearer <jwt_token> or query param ?email=...
| Parameter | Type | Required | Description |
|---|---|---|---|
email |
string | Optional | User email (if not using Bearer token) |
{
"authenticated": true,
"email": "user@example.com",
"role": "PRO",
"credits": 198,
"subscription_id": "sub_01..."
}
Generate social media content from source text
Required Authorization: Bearer <jwt_token>
{
"source": "Your long-form content here...",
"platforms": ["twitter", "linkedin", "hooks"],
"brandVoice": "Professional but friendly"
}
{
"results": {
"twitter": "Thread content...",
"linkedin": "Post content...",
"hooks": ["Hook 1", "Hook 2", "Hook 3"]
},
"creditsRemaining": 197
}
Create Paddle checkout session for PRO upgrade
{
"email": "user@example.com",
"plan": "pro_monthly"
}
{
"checkoutUrl": "https://buy.paddle.com/..."
}
Paddle webhook receiver (subscription events)
Note: This endpoint is for Paddle webhooks only. Not for public use.