RRM Academy Ask API

The Ask API from RRM Academy — 2 operation(s) for ask.

GitHub OpenAPI

Operations 3

GET /api/ask NLWeb capability metadata #
POST /api/ask Conversational AI over the RRM Research Library #
POST /api/ask/sandbox No-auth sandbox test surface for /api/ask #

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-ask-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-ask-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RRM Academy Agent Ask 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: Ask
paths:
  /api/ask:
    get:
      operationId: ask_capability
      summary: NLWeb capability metadata
      description: 'Returns machine-readable capability JSON describing the /api/ask endpoint: supported methods, auth model, streaming transport, request/response shape, and guardrails. Unauthenticated. Cacheable for 1 hour.'
      security: []
      servers:
      - url: https://rrmacademy.org
      responses:
        '200':
          description: Capability descriptor
          headers:
            Cache-Control:
              schema:
                type: string
              description: public, max-age=3600
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskCapability'
      tags:
      - Ask
    post:
      operationId: ask_query
      summary: Conversational AI over the RRM Research Library
      description: 'Answers questions scoped to restorative reproductive medicine using the RRM Library corpus. `GET /api/ask` returns unauthenticated capability metadata. `POST /api/ask` requires a session: include the `session` cookie from `/api/auth/login`; a POST without one is answered 401. Limits per UTC day: 3 requests for a free account, 20 for a Save the Uterus Club member or staff. The response is JSON by default; set `Accept: text/event-stream` to receive a streaming SSE response. To test without authenticating, use the sandbox at `/api/ask/sandbox`.'
      security:
      - cookieAuth: []
      servers:
      - url: https://rrmacademy.org
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - message
              properties:
                message:
                  type: string
                  minLength: 2
                  maxLength: 500
                  description: The question to ask the RRM Library AI
      responses:
        '200':
          description: Answer with citations. Content-Type is `application/json` for authenticated requests without SSE Accept header, or `text/event-stream` for requests sent with an SSE `Accept` header.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
            text/event-stream:
              schema:
                type: string
                description: 'SSE stream. Two events: `data: <AskResponse JSON>` then `data: [DONE]`'
        '401':
          description: Missing or invalid session cookie. Sign in at /api/auth/login and send the session cookie, or use the sandbox.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '400':
          $ref: '#/components/responses/InvalidIdempotencyKey'
        '429':
          description: 'Rate limit exceeded. Free accounts: 3/day. Members and staff: 20/day. Counters reset at midnight UTC.'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            Retry-After:
              description: RFC 7231 -- seconds until the client may retry.
              schema:
                type: integer
                minimum: 0
              example: 60
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Upstream service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
      tags:
      - Ask
  /api/ask/sandbox:
    post:
      operationId: ask_sandbox
      summary: No-auth sandbox test surface for /api/ask
      description: 'The public, no-auth, no-key test surface for the /api/ask contract. Live at POST https://rrmacademy.org/api/ask/sandbox. Returns a canned, deterministic response with no LLM invocation, no authentication, no rate limit, and no data mutation (safe to call from any client, any number of times). Accepts the same JSON shape as /api/ask but ignores the body. Use it to validate that your client correctly parses the AskResponse-shaped reply before integrating with the authenticated /api/ask endpoint. Set Accept: text/event-stream for the SSE variant. Every response carries the `X-Sandbox: true` header. Also described under `info.x-sandbox`.'
      security: []
      servers:
      - url: https://rrmacademy.org
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: string
                  description: Ignored. Included for structural compatibility with /api/ask.
      responses:
        '200':
          description: Canned sandbox response. Shape matches SandboxAskResponse.
          headers:
            X-Sandbox:
              description: Always `true` on this endpoint.
              schema:
                type: string
                enum:
                - 'true'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxAskResponse'
            text/event-stream:
              schema:
                type: string
                description: 'SSE stream when Accept: text/event-stream. Two events: `data: <SandboxAskResponse JSON>` then `data: [DONE]`'
      tags:
      - Ask
components:
  schemas:
    AskCapability:
      type: object
      properties:
        endpoint:
          type: string
          example: /api/ask
        methods:
          type: array
          items:
            type: string
          example:
          - GET
          - POST
        auth:
          type: object
        streaming:
          type: object
        request:
          type: object
        response:
          type: object
        guardrails:
          type: object
        site:
          type: string
          format: uri
        library:
          type: string
          format: uri
    AskResponse:
      type: object
      required:
      - answer
      - citations
      properties:
        answer:
          type: string
          description: AI-generated answer scoped to RRM Library content
        citations:
          type: array
          items:
            type: object
            required:
            - url
            properties:
              url:
                type: string
                format: uri
              title:
                type: string
        fallback:
          type: boolean
          description: true when no relevant library content was found and a fallback message is returned
    SandboxAskResponse:
      type: object
      required:
      - answer
      - citations
      - sandbox
      description: Returned by /api/ask when ?mode=sandbox is set. Canned response, does not consume rate-limit budget or invoke the upstream LLM.
      properties:
        sandbox:
          type: boolean
          const: true
        answer:
          type: string
          example: Sandbox response. /api/ask returns answers grounded in the RRM Library.
        citations:
          type: array
          items:
            $ref: '#/components/schemas/Citation'
    Error:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error code
        message:
          type: string
          description: Human-readable error detail
      required:
      - error
    Citation:
      type: object
      required:
      - url
      properties:
        url:
          type: string
          format: uri
        title:
          type: string
  headers:
    RateLimitRemaining:
      description: RFC 9598 -- requests remaining in the current window. Agents should self-throttle when this drops to 0 rather than retrying through a 429.
      schema:
        type: integer
        minimum: 0
      example: 18
    RateLimitLimit:
      description: RFC 9598 (draft-ietf-httpapi-ratelimit-headers) -- total requests allowed in the current window.
      schema:
        type: integer
        minimum: 0
      example: 20
    RateLimitReset:
      description: RFC 9598 -- seconds until the current window resets.
      schema:
        type: integer
        minimum: 0
      example: 60
  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
  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