Skip to main content

Documentation

Everything you need to integrate WHITE LIFE AI into your applications.

Getting Started

The WHITE LIFE AI API is a RESTful service hosted at:

https://api.whitelifeai.com

All requests must be made over HTTPS. Responses are returned in JSON format. To get started, sign up for an account and generate your API key from the Account Settings page.

Authentication

Authenticate your requests by including your API key in the Authorization header.

curl https://api.whitelifeai.com/v1/health \
  -H "Authorization: Bearer YOUR_API_KEY"

Keep your API key secret. Do not expose it in client-side code. If you believe your key has been compromised, rotate it immediately from your account settings.

API Reference

Core endpoints for interacting with the WHITE LIFE AI platform.

GET/v1/health

Returns the health status of the API. No authentication required.

{
  "status": "ok",
  "version": "1.0.0",
  "uptime": "99.99%"
}
POST/v1/tasks

Submit an AI task for processing. The platform routes it to the optimal model based on task type, complexity, and your plan configuration.

curl -X POST https://api.whitelifeai.com/v1/tasks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "summarize",
    "input": "Your text here...",
    "options": { "model": "auto" }
  }'
GET/v1/usage

Retrieve your current billing period usage, including API calls, tasks processed, and credits remaining.

{
  "period": "2026-03",
  "api_calls": 1284,
  "tasks_processed": 892,
  "credits_remaining": 3716
}

SDKs

Official client libraries are available for popular languages. Install the SDK for your platform and start making API calls in minutes.

JavaScript / TypeScript

npm install @whitelifeai/sdk

Python

pip install whitelifeai

Webhooks

Receive real-time notifications when events occur in your account. Configure webhook endpoints from your dashboard to listen for task completions, billing events, and system alerts.

// Example webhook payload
{
  "event": "task.completed",
  "task_id": "tsk_abc123",
  "status": "success",
  "model_used": "claude-3.5-sonnet",
  "duration_ms": 1240,
  "timestamp": "2026-03-15T10:30:00Z"
}

All webhook payloads are signed with HMAC-SHA256. Verify the X-Signature header to ensure authenticity.