EmofyEmofy Docs

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 by scripts/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 informational X-Quota-Warning header is no longer sent.

  • Every /api/v1/* operation now publishes a concrete 2xx response schema in the OpenAPI document (previously the response body was unmodelled). This is additive to the contract — the @emofy/dev-sdk accessors 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-DM participantHash, 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} and POST /api/v1/safety/dismissal-contacts no longer return pin, orgId or deletedAt; each contact now carries hasPinSet (boolean) instead. The PIN is stored only as a hash, and POST never echoes it back. The POST body pin is now validated: it must be exactly 6 ASCII digits — "" or any other format is a 400; an omitted or null pin creates a contact without a PIN.

  • Enrollment studentId narrowed to student subject ids (breaking for invalid input). POST /api/v1/enrollments (and the in-product POST /api/academic/enrollments, which shares the same body) now accepts a studentId only 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 a 400. Valid requests are unchanged.

  • Notification send bodies are validated and bound to the key's organization (breaking request change). POST /api/v1/notifications and POST /api/v1/notifications/bulk now validate the request body: userId (single) / userIds (bulk, 1–500) and title (1–200 characters) are required, body is optional (up to 5000 characters; an omitted body sends an empty body). The type, resourceType, resourceId and actionUrl fields are no longer accepted — sending any of them, or any other unknown field, is a 400. 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 with 403 (code: recipient_not_in_org) and nothing is sent. The bulk response count is 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/sdk EmofyRestClient.notifications.send now takes { userId, title, body? }.

Deprecated

  • Legacy messaging endpoints retired with 410 Gone — GET /api/v1/conversations, GET /api/v1/conversations/{id} and GET /api/v1/channels now return 410 Gone for every caller, including keys with a valid messages:read / channels:read grant. These routes exposed org-wide conversation metadata without a participant check and are retired for security reasons; the sunset window never serves 200. Every 410 response carries Deprecation: true, Sunset (HTTP-date, retirement + 30 days) and Link; rel="sunset" headers, plus a migration pointer in error.message (error.code: GONE).

    Migration mapping (the V1 replacement is not a drop-in — path, scope and response shape all differ):

    DimensionLegacyV1 replacement
    RouteGET /api/v1/conversations, GET /api/v1/conversations/{id}, GET /api/v1/channelsGET /api/v1/messaging/conversations
    Scopemessages:read / channels:readconversations:read
    Shaperaw 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.

On this page