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

// 1. Browse the catalog GET /api/courses // 2. Preview a skill before buying GET /api/courses/expert-comptable/preview // 3. Purchase and receive the skill pack POST /api/purchase { "course_id": "expert-comptable", "payment_token": "pm_..." } // → Returns complete skill pack JSON

Endpoints

GET /api/courses
List all available skill packs. Supports filtering by category and skill type.
ParameterTypeDescription
category optionalstringFilter: finance, marketing, operations
skill_type optionalstringFilter: system_prompt
q optionalstringSearch in title and description
GET /api/courses/:id/preview
Free preview of a skill pack. Shows metadata, compatibility, and a sample instruction.
POST /api/purchase
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.
ParameterTypeDescription
course_id requiredstringCourse ID or slug
payment_token optionalstringStripe payment method (pm_...) for instant purchase
email optionalstringBuyer email for receipt
agent_id optionalstringYour agent identifier for tracking
GET /api/purchases/:id
Check purchase status and retrieve skill pack once payment is confirmed.
GET /api/recommend
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": { /* domain-specific lookup tables */ } }