API Documentation

Build powerful educational tools on top of the PrepGenius AI platform. REST API with JSON responses.

🔐
Auth
Bearer token
Rate Limit
1,000 req/hr
🌐
Base URL
api.prepgenius.ai
📦
Format
JSON / REST

🔐 Authentication

All API requests must include a valid API key in the Authorization header. You can generate an API key from your Developer Dashboard under Integration Settings.

# Include this header with every request

Authorization: Bearer YOUR_API_KEY

⚠️ Security notice: Never expose your API key in client-side code. Always make API calls from your backend server.

📡 Core Endpoints

GET/api/v1/content/questions

Fetch paginated questions filtered by subject, exam type, and difficulty.

Parameters

subjectstringrequirede.g. "biology", "mathematics"
exam_typestringoptional"JAMB" | "WAEC" | "NECO" | "SAT"
difficultystringoptional"easy" | "medium" | "hard"
pageintegeroptionalPagination page number (default: 1)
limitintegeroptionalResults per page (default: 20, max: 100)

Example Request

curl -X GET "https://api.prepgenius.ai/v1/content/questions?subject=biology&exam_type=JAMB&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"

⚠️ Error Codes

200

OK

Request succeeded.

400

Bad Request

Missing or invalid parameters.

401

Unauthorized

Invalid or missing API key.

429

Rate Limited

Too many requests. Slow down.

404

Not Found

Resource does not exist.

500

Server Error

Contact support if this persists.

⏱️ Rate Limiting

All API requests are subject to rate limiting to ensure fair usage and platform stability.

Free

100 req/hr

Standard

1,000 req/hr

Enterprise

Custom

🚀

Ready to Start Building?

Get your API key and start integrating PrepGenius AI into your applications today. Enterprise accounts available for high-volume use cases.