RRM Academy Mutations API

The Mutations API from RRM Academy — 8 operation(s) for mutations.

GitHub OpenAPI

Operations 15

POST /api/contact/submit Submit a contact form message #
POST /api/newsletter/subscribe Subscribe an email address to the newsletter #
POST /api/community/posts Create a community post #
PATCH /api/community/posts Edit a community post the caller authored #
DELETE /api/community/posts Delete a community post the caller authored #
POST /api/community/comments Create a comment on a community post #
PATCH /api/community/comments Edit a comment the caller authored #
DELETE /api/community/comments Delete a comment the caller authored #
POST /api/community/reactions Add a reaction to a post or comment #
DELETE /api/community/reactions Remove a reaction the caller added #
POST /api/saved Save a library article to the caller's collection #
DELETE /api/saved Remove a library article from the caller's collection #
POST /api/auth/signup Register a new free RRM Academy account #
GET /api/auth/verify-email Render the email-verification confirm page #
POST /api/auth/verify-email Confirm an email address (consume the verification token) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rrmacademy-org:rrmacademy-org-mutations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rrmacademy-org-mutations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RRM Academy Agent Mutations API
  version: 1.0.0
  description: 'Programmatic access to the RRM Academy research library and editorial guardrails, exposed via the Model Context Protocol (MCP). Thousands of peer-reviewed articles on restorative reproductive medicine, NaProTechnology, fertility awareness-based methods, endometriosis, PMOS / PCOS, and related women''s health topics. Clinical content curated under the direction of Dr. Naomi Whittaker, MD.


    ## Versioning & deprecation


    This API is unversioned-stable: existing paths and response fields change only additively (new optional fields, new endpoints). A breaking change ships under a new path prefix (for example `/v2/...`) rather than mutating an existing path. Deprecated endpoints continue to work during a wind-down window and are announced via a `Deprecation` response header (RFC 8594) and a `Sunset` header carrying the earliest removal date, with at least 90 days'' notice. Changes are also published on the developer portal at https://rrmacademy.org/connect/. No uptime or latency SLA is implied.'
  contact:
    name: RRM Academy
    email: info@rrmacademy.org
    url: https://rrmacademy.org
  license:
    name: Fair-use citation
    url: https://rrmacademy.org/terms-of-use/
  x-api-versioning:
    strategy: unversioned-stable
    compatibility: additive-only
    breaking_changes: shipped under a new path prefix (e.g. /v2/...), never by mutating an existing path
    deprecation_headers:
    - Deprecation
    - Sunset
    deprecation_header_spec: https://www.rfc-editor.org/rfc/rfc8594
    minimum_notice_days: 90
    changelog: https://rrmacademy.org/connect/
  x-sandbox:
    url: https://rrmacademy.org/api/ask/sandbox
    method: POST
    auth_required: false
    api_key_required: false
    safe: true
    test_only: true
    description: 'No-auth test surface. POST any (or no) body to receive a canned, deterministic AskResponse-shaped reply with no LLM invocation, no rate limit, and no data mutation. Use it to validate client parsing before integrating with the authenticated /api/ask endpoint. Set Accept: text/event-stream for the SSE variant.'
    operationId: ask_sandbox
servers:
- url: https://mcp.rrmacademy.org
  description: Apex MCP server (high-level RAG, semantic search, editorial guardrails). Bearer auth, self-service keys at https://rrmacademy.org/account/mcp-keys.
- url: https://mcp-library.rrmacademy.org
  description: 'Library MCP server (low-level read-only structured access to the library: status, get_article, search_metadata). Public, no auth.'
- url: https://rrmacademy.org
  description: RRM Academy Pages (ask endpoint, articles list, articles bulk, sandbox).
security:
- bearerAuth: []
tags:
- name: Mutations
paths:
  /api/contact/submit:
    post:
      operationId: contact_submit
      summary: Submit a contact form message
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/contact/submit.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/newsletter/subscribe:
    post:
      operationId: newsletter_subscribe
      summary: Subscribe an email address to the newsletter
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/newsletter/subscribe.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/community/posts:
    post:
      operationId: community_posts_create
      summary: Create a community post
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/community/posts.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      operationId: community_posts_update
      summary: Edit a community post the caller authored
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/community/posts.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Caller does not own the post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
    delete:
      operationId: community_posts_delete
      summary: Delete a community post the caller authored
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Caller does not own the post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
  /api/community/comments:
    post:
      operationId: community_comments_create
      summary: Create a comment on a community post
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/community/comments.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      operationId: community_comments_update
      summary: Edit a comment the caller authored
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/community/comments.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Caller does not own the comment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
    delete:
      operationId: community_comments_delete
      summary: Delete a comment the caller authored
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Caller does not own the comment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
  /api/community/reactions:
    post:
      operationId: community_reactions_create
      summary: Add a reaction to a post or comment
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/community/reactions.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: community_reactions_delete
      summary: Remove a reaction the caller added
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
  /api/saved:
    post:
      operationId: saved_create
      summary: Save a library article to the caller's collection
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: See functions/api/saved.js for the request schema.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
    delete:
      operationId: saved_delete
      summary: Remove a library article from the caller's collection
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
  /api/auth/signup:
    post:
      operationId: auth_signup
      summary: Register a new free RRM Academy account
      description: Creates a user account and sends an email-verification magic link. Free registration; no payment. Public endpoint (no bearer auth). Protected by IP rate limiting (5 attempts / 15 min) and a Cloudflare Turnstile bot check. For anti-enumeration the endpoint returns the same 201 success shape whether or not the email is already registered.
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignupRequest'
      responses:
        '201':
          description: Account created (or, for an existing email, the anti-enumeration equivalent). Sets session and auth-hint cookies via Set-Cookie. An email-verification link is sent to the address.
          headers:
            Set-Cookie:
              description: Session and auth-hint cookies.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignupSuccess'
        '400':
          description: Invalid JSON, invalid payload, failed field validation, weak or wrong-length password (8-128 chars required), or rejected email (disposable domain / bad MX). May include a `suggestion` for a likely email typo.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '403':
          description: Turnstile bot check failed or verification service misconfigured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '429':
          description: Too many signup attempts from this IP.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '503':
          description: Email service temporarily unavailable, or client IP could not be determined.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
  /api/auth/verify-email:
    get:
      operationId: auth_verify_email_get
      summary: Render the email-verification confirm page
      description: Side-effect-free confirmation page for the verification magic link (GET does not consume the token, so email scanners and link prefetchers cannot silently verify). Returns an HTML page with a POST form. The `token` is the 32-64 lowercase-hex single-use token from the verification email.
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - name: token
        in: query
        required: true
        description: Single-use verification token ([a-f0-9]{32,64}) from the emailed link.
        schema:
          type: string
          pattern: ^[a-f0-9]{32,64}$
      responses:
        '200':
          description: Confirm page (HTML) with a form that POSTs the token.
          content:
            text/html:
              schema:
                type: string
        '400':
          description: Malformed or missing token (HTML page).
          content:
            text/html:
              schema:
                type: string
        '410':
          description: Token expired or already consumed (HTML page).
          content:
            text/html:
              schema:
                type: string
    post:
      operationId: auth_verify_email
      summary: Confirm an email address (consume the verification token)
      description: 'Magic-link branch: submit the token as `application/x-www-form-urlencoded` (field `token`). On success the single-use token is consumed, the user is marked verified, a session is minted, and the response is a 303 redirect to /account/ with Set-Cookie. A dormant legacy branch accepts `application/json` `{ "code": "..." }` with an authenticated session cookie and returns `{ "ok": true }`. Rate limited (20 form attempts / 15 min per IP).'
      tags:
      - Mutations
      security: []
      servers:
      - url: https://rrmacademy.org
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - token
              properties:
                token:
                  type: string
                  pattern: ^[a-f0-9]{32,64}$
                  description: Single-use verification token from the emailed link.
          application/json:
            schema:
              type: object
              required:
              - code
              properties:
                code:
                  type: string
                  description: Legacy typed verification code (dormant fallback; requires an authenticated session).
      responses:
        '200':
          description: Legacy JSON branch succeeded, or the link was already used.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthSuccess'
            text/html:
              schema:
                type: string
        '303':
          description: 'Magic-link branch succeeded: redirect to /account/ with session cookies set.'
          headers:
            Location:
              description: https://rrmacademy.org/account/
              schema:
                type: string
            Set-Cookie:
              description: Session and auth-hint cookies.
              schema:
                type: string
        '400':
          description: Malformed token (HTML) or invalid legacy code/JSON (JSON AuthError).
          content:
            text/html:
              schema:
                type: string
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '401':
          description: 'Legacy branch: no authenticated session.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '410':
          description: Verification token expired (HTML page).
          content:
            text/html:
              schema:
                type: string
        '429':
          description: Too many verification attempts.
          content:
            text/html:
              schema:
                type: string
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
components:
  responses:
    IdempotencyMismatch:
      description: The Idempotency-Key was previously used with a different request body. Use a new key for a new request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            ok: false
            error: idempotency-mismatch
            message: This Idempotency-Key was used with a different request body. Use a new key for a new request.
    InvalidIdempotencyKey:
      description: Idempotency-Key header is malformed. Must be 16-128 printable ASCII characters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            ok: false
            error: invalid-idempotency-key
            message: Idempotency-Key must be 16-128 printable ASCII characters (RFC IETF idempotency-header draft).
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: 'Opaque client-generated identifier (recommend 36-character UUID) that lets the server detect retried requests on this mutation endpoint and return the cached prior response instead of re-running side effects. Implements the IETF idempotency-header draft (https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/). Constraints: 16-128 printable ASCII characters. The server returns the same status, body, and Idempotency-Replayed: true on a successful match. If the same key is reused with a different request body, the server returns 422 with error=idempotency-mismatch. Keys expire after 24 hours. Idempotency is opt-in: requests without this header behave exactly as before.'
      schema:
        type: string
        minLength: 16
        maxLength: 128
        pattern: ^[\x21-\x7e]{16,128}$
        example: order-2026-10-24-000123-retry-1
  schemas:
    SignupSuccess:
      type: object
      properties:
        ok:
          type: boolean
          enum:
          - true
        emailVerificationRequired:
          type: boolean
          enum:
          - true
        resendPath:
          type: string
          description: Path to request a fresh verification email, e.g. /api/auth/resend-verification.
      required:
      - ok
      - emailVerificationRequired
    SignupRequest:
      type: object
      required:
      - firstName
      - lastName
      - email
      - password
      properties:
        firstName:
          type: string
          minLength: 1
          maxLength: 100
        lastName:
          type: string
          minLength: 1
          maxLength: 100
        email:
          type: string
          format: email
          description: Validated for format, disposable domains, and MX records.
        password:
          type: string
          minLength: 8
          maxLength: 128
          description: 8-128 characters; common/breached passwords are rejected.
        next:
          type: string
          maxLength: 200
          description: Optional post-signup redirect path.
        turnstileToken:
          type: string
          description: Cloudflare Turnstile token when the bot check is enforced.
    AuthSuccess:
      type: object
      properties:
        ok:
          type: boolean
          enum:
          - true
      required:
      - ok
    Error:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error code
        message:
          type: string
          description: Human-readable error detail
      required:
      - error
    AuthError:
      type: object
      description: Auth-endpoint error envelope. `error` carries a human-readable message (not a machine code); `suggestion` appears only on likely email typos.
      properties:
        ok:
          type: boolean
          enum:
          - false
        error:
          type: string
          description: Human-readable error message
        suggestion:
          type: string
          description: Suggested corrected email address (typo detection only)
      required:
      - ok
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: Bearer API key. Self-service issuance at https://rrmacademy.org/account/mcp-keys.
    cookieAuth:
      type: apiKey
      in: cookie
      name: session
      description: Session cookie set by POST /api/auth/login. Required for POST /api/ask; the sandbox needs none.
x-idempotency-policy:
  header: Idempotency-Key
  draft: https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/
  key_format: 16-128 printable ASCII characters; recommend a 36-character UUID v4
  ttl_hours: 24
  mismatch_status: 422
  replay_header: 'Idempotency-Replayed: true'
  applies_to:
  - method: POST
    path: /api/ask
  - method: POST
    path: /mcp
  - method: POST
    path: /api/contact/submit
  - method: POST
    path: /api/newsletter/subscribe
  - method: POST
    path: /api/community/posts
  - method: PATCH
    path: /api/community/posts
  - method: DELETE
    path: /api/community/posts
  - method: POST
    path: /api/community/comments
  - method: PATCH
    path: /api/community/comments
  - method: DELETE
    path: /api/community/comments
  - method: POST
    path: /api/community/reactions
  - method: DELETE
    path: /api/community/reactions
  - method: POST
    path: /api/saved
  - method: DELETE
    path: /api/saved