DATAGRAM EDUCATION / DEVELOPER CONTRACT

Learning APIs with clear boundaries.

Education separates account identity, learning progress, community content, AI context and purchase entitlement state so the client can stay fast without turning local UI flags into authority.

Bundle · com.datagram.educationOTP signupServer-verified entitlementPush-topic isolated
PUBLIC CONTRACT MODEL

Small contracts for distinct jobs.

The core API is available below https://amir-os.com/datagram/education/api. These routes describe the public client boundary. Private service topology, credentials and privileged administration routes are intentionally not exposed here.

01

Identity & OTP

/auth/request-otp and /auth/verify-otp should rate-limit requests, bind challenges to the intended account action and never log raw OTP codes.

02

Learning profile

/me returns safe learner preferences, interests, progress summaries and capability flags appropriate to the authenticated user.

03

Courses & lessons

/catalog and lesson routes expose published learning material, locale support, difficulty, resources and progress-safe identifiers.

04

Progress

Progress writes are idempotent and scoped to course/lesson/user. The server reconciles the canonical state after offline retries or duplicate mobile requests.

05

AI Tutor

AI requests carry only the lesson context, user prompt and feature data needed for that answer. Server policy controls limits, safety and premium capability.

06

Comments & projects

Community content uses separate moderation, visibility and reporting controls instead of inheriting access from private learning data.

STORE & ENTITLEMENTS

Purchases are evidence, not a client-side switch.

The client can query the store for products, but the backend decides what the current user may access after verified transaction and entitlement processing.

com.datagram.education.monthlyMonthly premium subscription in group com.datagram.education.group.
com.datagram.education.1000Education credit product for eligible in-app learning operations.
com.datagram.education.4000Larger Education credit product for eligible in-app learning operations.
Paid capabilities: not enabledThe internal test does not enable purchases or grant paid entitlements. Product identifiers are reserved for the verified billing integration.
SECURITY RULES

Education data stays Education data.

Belonging to the Datagram Family does not create automatic cross-app permission.

Product-scoped tokens

A token accepted for Education must not automatically authorize Flex, Pulse, Vault or another Datagram app.

Push topic isolation

Education APNs delivery uses topic com.datagram.education. A shared team APNs signing key remains server-side and is never shipped in the app.

Purpose-limited learning data

Interests and learning activity are processed to operate, personalize and improve the academy — not silently repurposed for unrelated products.

Account deletion

Deletion requests must authenticate the account, revoke active sessions and reconcile retained transaction/security records under the published privacy policy.

Account challenges, secure sessions, profile preferences, catalog, lesson progress, comments, reporting, blocking and account deletion are deployed for the internal test. AI tutoring, code execution, paid entitlements and push delivery remain unavailable. Clients fail closed rather than falling back to another product’s authentication service.