Skip to content

API & Gateway Reference

The Maktabi API Gateway is served at https://api.maktabi.space.

Authentication

All private endpoints require a Bearer token:

Authorization: Bearer mk_dsk_...

Core Endpoints

1. POST /v1/chat/completions

OpenAI-compatible streaming inference endpoint.

  • Headers:
    • Content-Type: application/json
    • Authorization: Bearer mk_dsk_...
  • Response: Server-Sent Events (text/event-stream).

2. GET /v1/models

Returns available model identifiers (adem, adem-pro).

3. GET /v1/me

Returns the caller’s account snapshot:

{
"client_id": 49,
"email": "user@example.com",
"plan": "free_trial",
"credits_balance": 2000,
"trial_days_remaining": 7
}

4. POST /api/feedback

In-app crash reporting and user feedback pipeline.

  • Rate limited at 10 requests / min / IP.