RESTful + GraphQL + WebSocket endpoints. Embed StackGrasp into any product.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/courses | List courses with filters (category, price, rating, sponsored) |
| GET | /api/v1/courses/{id}/syllabus | Full AI-generated syllabus — modules, outcomes, assessments |
| POST | /api/v1/courses/{id}/enroll | Enroll a user, trigger payment, issue a lookup-token certificate |
| GET | /api/v1/users/{id}/mastery | Verified mastery graph — skill percentiles, learning velocity |
| POST | /api/v1/credentials/issue | Mint a soulbound on-chain (Polygon) mastery credential NFT |
| GET | /api/v1/credentials/verify/{tokenId} | Verify a credential directly against the chain |
| POST | /api/v1/ai/syllabus/generate | Generate a syllabus from a goal string |
| POST | /api/v1/ai/explain | Explain a concept at ELI5 / Normal / Expert / PhD level |
| POST | /api/v1/payments/checkout | Create payment intent (Paystack / Crypto) |
| POST | /api/v1/payments/payout | Real Paystack transfer of a tutor's queued balance to their bank account |
| GET | /api/v1/talent/search | Search verified talent by skill, mastery %, availability |
| POST | /api/v1/bci/session/start | Start a focus session — self-reported, or real Muse EEG over Web Bluetooth client-side |
| POST | /api/v1/bci/pace/adjust | Submit a focus/stress reading, get back a real pace decision |
| GET | /api/v1/sentinel/timeline | The Sentinel — this user's own real activity timeline, searchable and topic-linked |
const StackGrasp = require('stackgrasp-sdk');
const client = new StackGrasp({ apiKey: 'nxl_live_sk_...' });
// Generate a syllabus
const syllabus = await client.ai.generateSyllabus({ goal: 'Become an AI Engineer' });
// Process payment
const order = await client.payments.checkout({
amount: 8900, // $89.00
payment_type: 'card',
item_id: 'crs_001',
item_type: 'course'
});Rate limits below are enforced against your real account plan (or a real issued key's owner's plan) — not a request header, which can't be spoofed for a higher limit anymore.
| Plan | Rate limit | Price |
|---|---|---|
| Seeker | 60 req/min | Free |
| Explorer | 120 req/min | $9/mo |
| Scholar | 300 req/min | $29/mo |
| Apex | 1,200 req/min | $129/mo |