Read published courses and approved canonical sources, or ask educational questions in English and Arabic. There are no public corpus-search, publishing, administration, course-generation or progress-writing endpoints.
01 · Authentication
An account, then an access token.
You need a Yaqeen account, not a Supabase dashboard account. A personal script can create an account and sign in through Supabase Auth without using Yaqeen's login form. There is no separate Yaqeen /login endpoint.
Supabase Auth project
https://okcctzpfpreziuxnyepk.supabase.co
Publishable key
sb_publishable_id9PIk1ukSPQmt1-KO2Cbg_b_aPXU0G
These connection values are public. They identify the project; they do not grant account access. Keep passwords, access tokens and refresh tokens private.
1. Create your account once
If you already have a Yaqeen account, skip to sign-in. Check your inbox and click the confirmation link before signing in. Email confirmation is required. You do not need to use the website’s signup form.
The response contains access_token, refresh_token and expires_in. Use only access_token for API requests. The publishable key identifies the Auth project; it is not your API access token.
Password login is for your own account or script. Partner apps should use a user-authorized sign-in flow instead of collecting users' passwords. Google sign-in also works through the interactive Supabase flow; use its Supabase access token, not a Google token. A Google-only account needs a configured password for password login.
API keys and machine credentials are not available in this release. Never use a Supabase secret/service-role key, refresh token or publishable key as the Yaqeen bearer token. Supabase Auth errors use Supabase's error format.
02 · Quick start
Make your first request.
Set YAQIN_ACCESS_TOKEN privately to the token returned by sign-in, then list published courses. Every API operation requires an active signed-in account.
To test in Swagger, select Authorize, paste only your access_token (without the Bearer prefix), then choose an operation → Try it out → Execute.
Expect HTTP 200 and JSON containing items, total, offset and limit. Use a returned course ID to fetch its detail. External browser integrations need their exact origin approved for CORS.
03 · HTTP reference
Four operations. One contract.
Paths below are relative to the API base URL. Field types, defaults, required flags and constraints are generated from the actual OpenAPI contract.
Preserve the evidence. Keep source attribution, grading, review/translation status and referrals visible. Do not invent missing translations. Drafts, archives and Coming soon courses are unavailable. Course detail may return 409 if its sources await approval; source reads return 404 without an approved canonical record.
Render tutor answer blocks in order, resolving source IDs through the response's sources map. Check tier, ai_generated and safety_outcome: HTTP 200 can contain a refusal or referral. Label AI answers and temporary practice exercises. HTTP tutoring may cite eligible unreviewed library passages that cannot be fetched through the canonical source endpoint; MCP tutoring uses approved sources only.
04 · MCP
The same capabilities, as tools.
Use a remote client that supports Streamable HTTP. All four tools are anonymous and rate-limited. No account, OAuth registration, callback, client secret or bearer token is needed.
MCP server URLhttps://public-api.yaqeenguide.com/api/v1/mcp/
Add the server URL to your MCP client.Keep the final slash; hosted Claude's slashless form is also accepted.
Select authentication: None.Recreate old OAuth connections without authentication.
Select a tool.The client discovers all four tools. Start by listing published courses.
Tool schemas come from tools/list. Results use structuredContent and content blocks. Check result.isError, even with HTTP 200. Quota/content failures include JSON text with error and numeric status; transport throttling returns HTTP 429 with Retry-After. Invalid arguments may return plain MCP error text.
No sign-in is required for MCP.Authorization headers are ignored. The tools expose published courses and approved sources; tutoring uses those sources in-process and has no account or private learner progress.
Guest limits use the viewer IP (IPv6 /64), with shared service caps. Users behind the same NAT or hosted connector share limits. Every MCP HTTP request counts, including initialization and tool listing. Check HTTP 429 and Retry-After, and result.isError for model quota failures. Quota-storage outages fail closed.
05 · Operations
Limits, errors and retries.
These are configurable defaults, not a pricing plan. Limits are shared across an account's tokens, clients and IP addresses, using fixed UTC minute/day windows.
Allowance
Per account
Across service
API requests / MCP HTTP requests per minute
60
500
Model operations / minute, shared with the app
12
500
Model token reservations / UTC day
10,000,000
100,000,000
Each tutor request reserves 200,000 model tokens as a conservative ceiling, not measured usage. Reads reserve no model tokens; failed operations are not refunded. Every MCP HTTP request counts. MCP per-account column values apply per guest IP (IPv6 /64); shared model limits also cover app/API activity. Default tutoring caps allow up to 50 guest calls/day and 500 shared calls/day. Maximum request body: 64 KiB.
HTTP status
What to do
400
Correct invalid input. Unknown top-level tutor fields are rejected.
401
Supply a valid token; refresh or sign in again.
403
Account unavailable or access denied. Resolve access before retrying.
404
Course/source unavailable.
409
Course citations awaiting approval.
413
Reduce the body below 64 KiB.
429
Wait for the allowance or model budget to reset.
500 / 503
Use bounded backoff for temporary server, auth, quota or model failures.
{"error":{"code":"rate_limited","message":"Public API request limit exceeded."}}
Check error.code instead of matching message text. For rate_limited, wait the HTTP Retry-After seconds. A quota_exceeded daily budget can remain exhausted until the next UTC day. Tutor calls have no idempotency key: retries can spend quota again. Responses use Cache-Control: no-store.
MCP transport can additionally return 421 for an untrusted host. HTTP API authentication errors use 401/403; MCP needs no authentication. Outages use 503. Keep credentials out of URLs, logs, source code and prompts.
06 · Contract & downloads
A guide to read. A schema to build with.
This HTML guide explains the integration. The schema reference covers every nested type and response. Swagger lets you authorize and execute requests. OpenAPI JSON is the machine-readable export for client generation and tools.
Patch · 1.0.1: compatible fixes and documentation corrections.
Minor · 1.1.0: optional additions. Tolerate new output fields and unknown free-form status/code strings.
Major · 2.0.0: incompatible changes use /api/v2 and /api/v2/mcp/, with a migration guide and announced retirement date.
Verification · 6 October 2026
All four Public API operations, normal password login and token refresh passed with a new learner account. Tutor output included resolvable citations.
Local anonymous MCP checks passed for initialization, all four tools, guest/shared request limits, model caps and forged-header rejection.
Anonymous production MCP needs a deployment smoke test. Historical OAuth checks no longer describe the current connection flow.
Closed enums and documented input limits stay compatible within a major version. Quota/policy changes are announced separately. No v1 retirement date is set. The MCP protocol version is negotiated separately from product contract 1.0.0. Client compatibility requires a real production connection test.