API Changelog
Dated record of additions, deprecations, and breaking changes to the Emofy Developer API, derived from the OpenAPI snapshot diff.
Scope. This page is the Developer API changelog — additive endpoints, field additions, deprecations, and (operator-approved) breaking changes to the public
/api/v1/*surface. It is generated from the committed OpenAPI snapshot diff byscripts/generate-api-changelog.mjs. It is not the in-product content-CMS changelog (modules/content/changelog), which is a separate, org-authored feature surface.
Unreleased
Added
GET /api/v1/usage— organization API usage time-series (requests, errors, p95 latency, rate-limit hits) in daily UTC buckets.GET /api/v1/usage/keys/{apiKeyId}— the same time-series scoped to a single API key the organization owns.
Changed
-
An organization over its configured monthly request quota now gets
429 Too Many Requests(code: "org_quota_exceeded") on/api/v1/*. The earlier informationalX-Quota-Warningheader is no longer sent. -
Every
/api/v1/*operation now publishes a concrete2xxresponse schema in the OpenAPI document (previously the response body was unmodelled). This is additive to the contract — the@emofy/dev-sdkaccessors are now response-typed and the Scalar reference renders each shape. -
Internal columns removed from response bodies (security-positive). Several reads previously serialized bare database rows, leaking internal fields onto the wire — tenant id (
orgId), soft-delete marker (deletedAt), audit-actor ids (createdById,markedById,gradedById,invitedBy,grantedBy,addedBy,createdBy,updatedBy), Convex-bridge columns (clientKey,convexId,source,archiveSeq), the direct-DMparticipantHash, the trusted-contact PIN state (pinHash,pinSetAt, …), and sensitive profile PII (phone,address). These are now dropped from the public response contract (academic, family, messaging, profiles, tasks, feed and identity reads). Domain fields keep their existing wire shape unchanged; the one intentional secret,POST /api/v1/apps/{id}/install→credential.appSecret, is preserved. -
Safe dismissal contacts no longer return the PIN (security-positive).
GET /api/v1/safety/dismissal-contacts/{studentId}andPOST /api/v1/safety/dismissal-contactsno longer returnpin,orgIdordeletedAt; each contact now carrieshasPinSet(boolean) instead. The PIN is stored only as a hash, andPOSTnever echoes it back. ThePOSTbodypinis now validated: it must be exactly 6 ASCII digits —""or any other format is a400; an omitted ornullpincreates a contact without a PIN. -
Enrollment
studentIdnarrowed to student subject ids (breaking for invalid input).POST /api/v1/enrollments(and the in-productPOST /api/academic/enrollments, which shares the same body) now accepts astudentIdonly when it is a student subject id: a platform user (usr_), a roster child (chl_) or an account-less SIS student record (osd_). Any other prefixed id — for example a membership or profile id — is a400. Valid requests are unchanged. -
Notification send bodies are validated and bound to the key's organization (breaking request change).
POST /api/v1/notificationsandPOST /api/v1/notifications/bulknow validate the request body:userId(single) /userIds(bulk, 1–500) andtitle(1–200 characters) are required,bodyis optional (up to 5000 characters; an omitted body sends an empty body). Thetype,resourceType,resourceIdandactionUrlfields are no longer accepted — sending any of them, or any other unknown field, is a400. The event type is fixed and the notification opens the key organization's home. Every recipient must be an active member of the API key's organization; one outsider refuses the whole request with403(code: recipient_not_in_org) and nothing is sent. The bulk responsecountis the number of distinct recipients. Response shapes and routes are unchanged. This is a deliberate break with no compatibility window (operator decision 2026-10-22: no live integrations);@emofy/sdkEmofyRestClient.notifications.sendnow takes{ userId, title, body? }.
Deprecated
-
Legacy messaging endpoints retired with
410 Gone—GET /api/v1/conversations,GET /api/v1/conversations/{id}andGET /api/v1/channelsnow return410 Gonefor every caller, including keys with a validmessages:read/channels:readgrant. These routes exposed org-wide conversation metadata without a participant check and are retired for security reasons; the sunset window never serves200. Every410response carriesDeprecation: true,Sunset(HTTP-date, retirement + 30 days) andLink; rel="sunset"headers, plus a migration pointer inerror.message(error.code: GONE).Migration mapping (the V1 replacement is not a drop-in — path, scope and response shape all differ):
Dimension Legacy V1 replacement Route GET /api/v1/conversations,GET /api/v1/conversations/{id},GET /api/v1/channelsGET /api/v1/messaging/conversationsScope messages:read/channels:readconversations:readShape raw paginated {items, total, page, limit}user-scoped {groups, visibleDirects}Physical removal of the routes follows in a separate release once route analytics show 30 consecutive zero-hit days on the retired endpoints.