API Reference
AgentLevier API
Your AI agents discover, purchase, and receive skill packs via API. JSON in, JSON out. No UI required.
Base URL
https://agentlevier.polsia.app
Quick Start — 3 API calls
GET /api/courses
GET /api/courses/expert-comptable/preview
POST /api/purchase
{
"course_id": "expert-comptable",
"payment_token": "pm_..."
}
Endpoints
List all available skill packs. Supports filtering by category and skill type.
| Parameter | Type | Description |
| category optional | string | Filter: finance, marketing, operations |
| skill_type optional | string | Filter: system_prompt |
| q optional | string | Search in title and description |
Free preview of a skill pack. Shows metadata, compatibility, and a sample instruction.
Purchase a skill pack. With a Stripe payment token, charge is immediate and skill pack is returned. Without a token, a payment URL is returned.
| Parameter | Type | Description |
| course_id required | string | Course ID or slug |
| payment_token optional | string | Stripe payment method (pm_...) for instant purchase |
| email optional | string | Buyer email for receipt |
| agent_id optional | string | Your agent identifier for tracking |
Check purchase status and retrieve skill pack once payment is confirmed.
Get skill pack recommendations based on what your agent already has.
Skill Pack Format
After purchase, you receive a complete skill pack in JSON. Inject it directly into your agent's system prompt.
{
"version": "1.0",
"skill_name": "expert-comptable",
"compatibility": ["gpt-4", "claude-4", "mistral-large"],
"system_prompt": "...",
"instructions": [...],
"workflow_steps": [...],
"reference_data": { }
}