Introduction
Eduka AI provides a powerful API for interacting with academic and research-focused AI agents.
Authorization
All requests must be authenticated using a Bearer token.
Authorization: Bearer YOUR_API_KEY
Run Agent
POST /v1/agents/runRequest Body
{
"agent_type": "essay",
"payload": {
"topic": "The impact of AI in education",
"word_count": 1200
}
}
Sample Request
JavaScript
Python
PHP
fetch('https://ai.eduka.ng/v1/agents/run', {
method: 'POST',
headers: {
'Authorization': 'Bearer API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent_type: 'essay',
payload: { topic: 'AI in Education' }
})
});
Sample Response
{
"markdown": "# Essay Output...", "citations": [], "tokens_used": 1420 } Error Responses
{
"error": "Quota exceeded", "code": 429 }