Start Here
Getting Started
Follow the universal onboarding flow for any organization or backend stack.
Onboarding Flow
Math AI team creates a tenant for your organization
Math AI team issues an API key for backend use
Math AI team assigns the allowed subjects for that tenant
Your team verifies access with GET /api/external/v1/ping and GET /api/external/v1/subjects
Your backend maps your own course/module records to Math AI subject_id values
Your backend creates chats and sends messages on behalf of your users
Base URL and Versioning
The current public contract is versioned under /api/external/v1. Breaking changes should go into a later version path.
Base URLtext
https://{{domain}}/api/external/v1First Requests
Before creating chats, confirm your API key and subject assignments.
1. Pingbash
curl -X GET "https://{{domain}}/api/external/v1/ping" \
-H "Authorization: Bearer <your_api_key>"2. List Available Subjectsbash
curl -X GET "https://{{domain}}/api/external/v1/subjects" \
-H "Authorization: Bearer <your_api_key>"