MDflow Documents API

The Documents API from MDflow — 8 operation(s) for documents.

GitHub OpenAPI

Operations 13

GET /api/v1/folders/{id}/documents List documents in a folder #
GET /api/v1/documents List documents #
POST /api/v1/documents Create a document #
GET /api/v1/documents/{id} Get a document #
PATCH /api/v1/documents/{id} Rename a document #
DELETE /api/v1/documents/{id} Delete a document #
PUT /api/v1/documents/{id}/body Overwrite document body #
PUT /api/v1/documents/{id}/folder Move a document #
PUT /api/v1/documents/{id}/sharing Update document sharing #
GET /api/v1/documents/{id}/shares List private shares #
POST /api/v1/documents/{id}/shares Share a document privately #
DELETE /api/v1/documents/{id}/shares Remove all private shares #
DELETE /api/v1/documents/{id}/shares/{shareId} Remove one private share #

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/mdflow-cz:mdflow-cz-documents-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

mdflow-cz-documents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MDflow Public Documents API
  version: 1.0.0
  description: 'HTTP API for reading and writing workspaces, folders, and markdown documents in MDflow. The personal API under /api/v1 authenticates with a Personal Access Token (mdf_…) or an OAuth access token and requires MDflow Pro. The Team API under /api/team/v1 is the content surface of an MDflow Team account: it authenticates with a Team access token (mdt_…) that is bound to one Team account, granted only the workspaces picked at creation, capped at read-only or read-and-write, and re-checked against the creator''s live membership, role, workspace permission, and the account''s access state on every request. Personal tokens are rejected on Team routes and Team tokens on personal routes.'
servers:
- url: https://mdflow.cz
  description: Production
- url: http://localhost:3000
  description: Local development
security:
- personalAccessToken: []
tags:
- name: Documents
paths:
  /api/v1/folders/{id}/documents:
    get:
      operationId: listFolderDocuments
      summary: List documents in a folder
      description: Returns documents owned by the authenticated user inside the specified folder. A folder owned by another user returns 404.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/FolderId'
      responses:
        '200':
          description: Document list.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DocumentListItem'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/FolderNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /api/v1/documents:
    get:
      operationId: listDocuments
      summary: List documents
      description: Returns all documents owned by the authenticated user across folders, optionally filtered to a single workspace with `?workspace_id=`. Document bodies are omitted from this list response.
      tags:
      - Documents
      parameters:
      - name: workspace_id
        in: query
        required: false
        description: List only documents whose folder belongs to this workspace.
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Document list.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DocumentListItem'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/WorkspaceNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    post:
      operationId: createDocument
      summary: Create a document
      description: Creates a markdown document inside a folder owned by the authenticated user. Duplicate sibling titles are automatically disambiguated.
      tags:
      - Documents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDocumentInput'
      responses:
        '201':
          description: Created document.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentListItem'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/FolderNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /api/v1/documents/{id}:
    get:
      operationId: getDocument
      summary: Get a document
      description: Returns one document owned by the authenticated user, including its markdown body. A document owned by another user returns 404.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Document details.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    patch:
      operationId: renameDocument
      summary: Rename a document
      description: Renames a document owned by the authenticated user. The new title is disambiguated against the other documents in the same folder.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchDocumentInput'
      responses:
        '200':
          description: Updated document (without body).
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentListItem'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    delete:
      operationId: deleteDocument
      summary: Delete a document
      description: Deletes one document owned by the authenticated user.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '204':
          $ref: '#/components/responses/Deleted'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /api/v1/documents/{id}/body:
    put:
      operationId: updateDocumentBody
      summary: Overwrite document body
      description: Replaces the markdown body of one document owned by the authenticated user while preserving metadata.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateDocumentBodyInput'
      responses:
        '200':
          description: Updated document.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /api/v1/documents/{id}/folder:
    put:
      operationId: moveDocument
      summary: Move a document
      description: Moves one document to another folder owned by the authenticated user. Duplicate target-folder titles are automatically disambiguated.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveDocumentInput'
      responses:
        '200':
          description: Moved document.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentListItem'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /api/v1/documents/{id}/sharing:
    put:
      operationId: updateDocumentSharing
      summary: Update document sharing
      description: Sets public sharing and commenting options for one document owned by the authenticated user. Share slugs are generated server-side.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSharingInput'
      responses:
        '200':
          description: Updated sharing state.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SharingState'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /api/v1/documents/{id}/shares:
    get:
      operationId: listDocumentShares
      summary: List private shares
      description: Returns the people a document owned by the authenticated user is privately shared with. Revoked shares are omitted.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Private share list.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DocumentShare'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    post:
      operationId: addDocumentShare
      summary: Share a document privately
      description: Privately shares a document owned by the authenticated user with one email address. Re-posting the same email updates its commenting permission. No invitation email is sent; the invitee gains access the next time they sign in with that email.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDocumentShareInput'
      responses:
        '201':
          description: Created or updated private share.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentShare'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    delete:
      operationId: removeAllDocumentShares
      summary: Remove all private shares
      description: Revokes every private share on a document owned by the authenticated user. Idempotent.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '204':
          $ref: '#/components/responses/Deleted'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/DocumentNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
  /api/v1/documents/{id}/shares/{shareId}:
    delete:
      operationId: removeDocumentShare
      summary: Remove one private share
      description: Revokes one private share on a document owned by the authenticated user. A share id that does not belong to this document returns 404.
      tags:
      - Documents
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      - $ref: '#/components/parameters/ShareId'
      responses:
        '204':
          $ref: '#/components/responses/Deleted'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ShareNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    ShareId:
      name: shareId
      in: path
      required: true
      description: Private share UUID.
      schema:
        type: string
        format: uuid
    FolderId:
      name: id
      in: path
      required: true
      description: Folder UUID.
      schema:
        type: string
        format: uuid
    DocumentId:
      name: id
      in: path
      required: true
      description: Document UUID.
      schema:
        type: string
        format: uuid
  schemas:
    Error:
      type: object
      additionalProperties: false
      required:
      - error
      properties:
        error:
          type: string
        message:
          type: string
          description: Optional human-readable guidance for resolving the error, included on authentication (401) and authorization (403) failures.
    MoveDocumentInput:
      type: object
      additionalProperties: false
      required:
      - folder_id
      properties:
        folder_id:
          type: string
          format: uuid
    PatchDocumentInput:
      type: object
      additionalProperties: false
      required:
      - title
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 100
    SharingState:
      type: object
      additionalProperties: false
      required:
      - is_public
      - allow_comments
      - share_slug
      - share_path
      - public_url
      properties:
        is_public:
          type: boolean
        allow_comments:
          type: boolean
        share_slug:
          type:
          - string
          - 'null'
        share_path:
          type:
          - string
          - 'null'
        public_url:
          type:
          - string
          - 'null'
          format: uri
    Document:
      type: object
      additionalProperties: false
      required:
      - id
      - title
      - folder_id
      - is_public
      - workspace_id
      - path
      - path_string
      - body
      - compounded_description
      - created_at
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        title:
          type: string
        folder_id:
          type: string
          format: uuid
        is_public:
          type: boolean
        workspace_id:
          type: string
          format: uuid
          description: The workspace this document belongs to (via its folder).
        path:
          type: array
          description: Full path from the workspace root down to this document, workspace first, document last.
          items:
            $ref: '#/components/schemas/PathSegment'
        path_string:
          type: string
          description: Path segment names joined by " / ".
        body:
          type: string
          description: Markdown document body.
        compounded_description:
          type: string
          description: Labeled cascade of descriptions from the workspace down through each ancestor folder to this document's folder. Empty string when nothing in the chain has a description.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    CreateDocumentInput:
      type: object
      additionalProperties: false
      required:
      - folder_id
      - title
      - body
      properties:
        folder_id:
          type: string
          format: uuid
        title:
          type: string
          minLength: 1
          maxLength: 100
        body:
          type: string
          maxLength: 512000
          description: Markdown document body. UTF-8 encoded content must not exceed 512000 bytes.
    DocumentListItem:
      type: object
      additionalProperties: false
      required:
      - id
      - title
      - folder_id
      - is_public
      - created_at
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        title:
          type: string
        folder_id:
          type: string
          format: uuid
        is_public:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        workspace_id:
          type: string
          format: uuid
          description: The workspace this document belongs to (via its folder). Returned by list/get responses; omitted from create/rename/move/body responses.
        path:
          type: array
          description: Full path from the workspace root down to this document. Returned by list/get responses; omitted from mutation responses.
          items:
            $ref: '#/components/schemas/PathSegment'
        path_string:
          type: string
          description: Path segment names joined by " / ".
    PathSegment:
      type: object
      additionalProperties: false
      required:
      - id
      - name
      - type
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        type:
          type: string
          enum:
          - workspace
          - folder
          - document
    DocumentShare:
      type: object
      additionalProperties: false
      required:
      - id
      - email
      - allow_comments
      - status
      - created_at
      - accepted_at
      properties:
        id:
          type: string
          format: uuid
          description: Private share identifier. Use it to remove this person.
        email:
          type: string
          format: email
        allow_comments:
          type: boolean
          description: Whether the recipient may comment.
        status:
          type: string
          enum:
          - pending
          - accepted
          description: pending until the recipient signs in with the invited email, then accepted.
        created_at:
          type: string
          format: date-time
        accepted_at:
          type:
          - string
          - 'null'
          format: date-time
    CreateDocumentShareInput:
      type: object
      additionalProperties: false
      required:
      - email
      properties:
        email:
          type: string
          format: email
          description: Recipient email address. Trimmed and lowercased before storage.
        allow_comments:
          type: boolean
          default: false
          description: Whether the recipient may comment. Defaults to false (view only).
    UpdateDocumentBodyInput:
      type: object
      additionalProperties: false
      required:
      - body
      properties:
        body:
          type: string
          maxLength: 512000
          description: Markdown document body. UTF-8 encoded content must not exceed 512000 bytes.
        confirmEmpty:
          type: boolean
          description: Must be true when body is an empty string. An empty body is otherwise refused with 400, so a client with a cleared or unloaded buffer cannot wipe a document silently.
    UpdateSharingInput:
      type: object
      additionalProperties: false
      required:
      - is_public
      - allow_comments
      properties:
        is_public:
          type: boolean
        allow_comments:
          type: boolean
  responses:
    WorkspaceNotFound:
      description: Workspace was not found or is not owned by the authenticated user.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            notFound:
              value:
                error: Workspace not found
    DocumentNotFound:
      description: Document was not found or is not owned by the authenticated user.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            notFound:
              value:
                error: Document not found
    Deleted:
      description: Deleted successfully. No response body.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
    Forbidden:
      description: The bearer token is valid but its owner cannot use the API. Agent control (REST + MCP) requires an MDflow Pro plan, so a token owned by a non-Pro account returns 403 on every endpoint. POST /api/v1/documents additionally returns 403 when the account reaches its document limit. The body includes a `message` field with guidance.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            proRequired:
              value:
                error: Pro plan required
                message: 'Authenticate with OAuth (in Claude or ChatGPT connectors, add https://mdflow.cz/api/mcp and complete the sign-in prompt) or with an MDflow Personal Access Token (send an ''Authorization: Bearer mdf_...'' header, created at https://mdflow.cz/settings). Requires an MDflow Pro account. Documentation: https://mdflow.cz/docs/api'
            documentLimit:
              value:
                error: Upgrade to Pro to create more than 100 documents.
    FolderNotFound:
      description: Folder was not found or is not owned by the authenticated user.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            notFound:
              value:
                error: Folder not found
    BadRequest:
      description: Request body was malformed or failed validation.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalidRequestBody:
              value:
                error: Invalid request body
    Unauthorized:
      description: Missing, malformed, invalid, or revoked bearer token. The body includes a `message` field with guidance for authenticating, and the response carries a `WWW-Authenticate` challenge.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
        WWW-Authenticate:
          $ref: '#/components/headers/WwwAuthenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missingToken:
              value:
                error: Missing or malformed bearer token
                message: 'Authenticate with OAuth (in Claude or ChatGPT connectors, add https://mdflow.cz/api/mcp and complete the sign-in prompt) or with an MDflow Personal Access Token (send an ''Authorization: Bearer mdf_...'' header, created at https://mdflow.cz/settings). Requires an MDflow Pro account. Documentation: https://mdflow.cz/docs/api'
            invalidToken:
              value:
                error: Invalid bearer token
                message: 'Authenticate with OAuth (in Claude or ChatGPT connectors, add https://mdflow.cz/api/mcp and complete the sign-in prompt) or with an MDflow Personal Access Token (send an ''Authorization: Bearer mdf_...'' header, created at https://mdflow.cz/settings). Requires an MDflow Pro account. Documentation: https://mdflow.cz/docs/api'
    ShareNotFound:
      description: Document or private share was not found, or is not owned by the authenticated user.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            documentNotFound:
              value:
                error: Document not found
            shareNotFound:
              value:
                error: Share not found
    ServerError:
      description: Unexpected server error.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unexpected:
              value:
                error: Unexpected API error
    RateLimited:
      description: The token or authenticated user exceeded a 60 requests per minute rate limit.
      headers:
        Cache-Control:
          $ref: '#/components/headers/NoStore'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            rateLimited:
              value:
                error: Rate limit exceeded
  headers:
    NoStore:
      description: API responses are not cacheable.
      schema:
        type: string
        const: no-store
    RetryAfter:
      description: Seconds to wait before retrying after a rate-limit response.
      schema:
        type: integer
        minimum: 1
    WwwAuthenticate:
      description: RFC 6750 Bearer challenge carrying a `resource_metadata` parameter (RFC 9728) that points to `/.well-known/oauth-protected-resource` for OAuth discovery. `Bearer realm="MDflow", resource_metadata="…"` when credentials are missing, or one that also includes `error="invalid_token"` with an `error_description` when a token was rejected.
      schema:
        type: string
  securitySchemes:
    personalAccessToken:
      type: http
      scheme: bearer
      bearerFormat: PAT
      description: 'Use an MDflow Personal Access Token in the form `Authorization: Bearer mdf_...`.'
    teamAccessToken:
      type: http
      scheme: bearer
      bearerFormat: Team access token
      description: 'Use an MDflow Team access token in the form `Authorization: Bearer mdt_...`. Created by any member on the Team''s API Access page (`/teams/{accountId}/api-access`); bound to one Team account, limited to the workspaces selected at creation, capped at read-only or read-and-write, and re-checked against the creator''s live membership and permissions on every request. Only accepted by the `/api/team/v1` routes.'