> ## Documentation Index
> Fetch the complete documentation index at: https://nemonist.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Blame a note

> Each line of a note beside the commit that last changed it, as GitHub's blame (GraphQL blame(path) ranges, the Memory page's Blame tab): adjacent lines with the same commit form one range. Worked out from each edit's kept replaced and added text, never guessed: when the kept history cannot establish a line's last commit (its create is older than the kept edits, or an edit could not be undone exactly), its range has commit null and uncertain true. whole is true when every line's commit is known from a replay from the note's create. With at, the note as that commit left it, blamed over the edits up to it.



## OpenAPI

````yaml /openapi.json get /folders/{id}/blame/{path}
openapi: 3.1.0
info:
  title: Nemonist API
  version: 1.0.0
  description: >-
    OpenRouter-compatible API with durable per-workspace memory. Point any
    OpenRouter client at https://nemonist.com/api/v1 with a Nemonist key
    (sk-nm-...). Chat completions, Responses and Messages requests from a
    workspace carrying a .nemonist/key get its memory; every other request is
    answered as OpenRouter would.
  contact:
    name: Nemonist
    url: https://nemonist.com
servers:
  - url: https://nemonist.com/api/v1
    description: Production
security:
  - apiKey: []
tags:
  - description: API key management endpoints
    name: API Keys
  - description: Analytics and usage endpoints
    name: Analytics
  - description: Anthropic Messages endpoints
    name: Anthropic Messages
  - description: BYOK endpoints
    name: BYOK
  - description: Benchmarks endpoints
    name: Benchmarks
  - description: Chat completion endpoints
    name: Chat
  - description: Credit management endpoints
    name: Credits
  - description: >-
      Public OpenRouter usage datasets. Data returned by these endpoints is
      licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/):
      reuse and republish it, including commercially, with attribution to
      OpenRouter.
    name: Datasets
  - description: Text embedding endpoints
    name: Embeddings
  - description: Endpoint information
    name: Endpoints
  - name: Folders
    description: >-
      Your memory folders, over your account's API key: read, export, upload,
      and manage keys.
  - description: Generation history endpoints
    name: Generations
  - description: Guardrails endpoints
    name: Guardrails
  - description: Images endpoints
    name: Images
  - name: Memory
    description: Nemonist's per-workspace memory.
  - name: Model runs
    description: Run models (physics and others) on inputs; one contract for every model
  - description: Model information endpoints
    name: Models
  - description: OAuth authentication endpoints
    name: OAuth
  - description: Organization endpoints
    name: Organization
  - description: Private Endpoints endpoints
    name: Private Endpoints
  - description: Provider information endpoints
    name: Providers
  - description: Rerank endpoints
    name: Rerank
  - description: OpenAI-compatible Responses API endpoints
    name: Responses
  - description: Speech-to-text endpoints
    name: STT
    x-displayName: Transcriptions
  - description: >-
      System One endpoints for models such as Jev, compatible with the TypeSafe
      SDKs. See https://openrouter.ai/docs/guides/community/typesafe-sdk.
    name: SystemOne
    x-displayName: System One
  - description: Text-to-speech endpoints
    name: TTS
    x-displayName: Speech
  - description: Video Generation endpoints
    name: Video Generation
  - description: Workspaces endpoints
    name: Workspaces
  - name: beta.responses
    description: >-
      Deprecated alias of responses. Use responses instead; scheduled for
      removal (sunset date TBD).
paths:
  /folders/{id}/blame/{path}:
    get:
      tags:
        - Folders
      summary: Blame a note
      description: >-
        Each line of a note beside the commit that last changed it, as GitHub's
        blame (GraphQL blame(path) ranges, the Memory page's Blame tab):
        adjacent lines with the same commit form one range. Worked out from each
        edit's kept replaced and added text, never guessed: when the kept
        history cannot establish a line's last commit (its create is older than
        the kept edits, or an edit could not be undone exactly), its range has
        commit null and uncertain true. whole is true when every line's commit
        is known from a replay from the note's create. With at, the note as that
        commit left it, blamed over the edits up to it.
      operationId: getFolderBlame
      parameters:
        - name: id
          in: path
          required: true
          description: The folder's id (fld_...), as GET /folders lists it.
          schema:
            type: string
        - name: path
          in: path
          required: true
          description: The file's path in the folder (URL-encoded).
          schema:
            type: string
        - name: at
          in: query
          required: false
          description: >-
            A commit id or a tag name; empty for today. HEAD (the newest commit)
            and <ref>~N (N commits older) work too, as git rev-parse; past the
            kept history is a 404.
          schema:
            type: string
      responses:
        '200':
          description: The blame.
          content:
            application/json:
              schema:
                type: object
                description: A note's blame.
                properties:
                  path:
                    type: string
                    description: The note.
                  commit:
                    type:
                      - string
                      - 'null'
                    description: The commit blamed at (at, resolved), or null for today.
                  lines:
                    type: integer
                    description: How many lines the note has.
                  whole:
                    type: boolean
                    description: True when every line's commit is known.
                  uncertainLines:
                    type: integer
                    description: Lines whose last commit the kept history cannot establish.
                  html_url:
                    type: string
                    description: The note on the dashboard (its Blame tab).
                  ranges:
                    type: array
                    description: >-
                      Ranges of adjacent lines with the same last commit, in
                      line order.
                    items:
                      type: object
                      description: One range.
                      properties:
                        startingLine:
                          type: integer
                          description: Its first line, from 1.
                        endingLine:
                          type: integer
                          description: Its last line.
                        lines:
                          type: array
                          description: The range's lines.
                          items:
                            type: string
                            description: A line, without its break.
                        age:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            1 (newest commit shown) to 10 (oldest), as GitHub's;
                            null when uncertain.
                        uncertain:
                          type: boolean
                          description: >-
                            True when the last commit of these lines cannot be
                            established (commit is null).
                        commit:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The commit that last changed these lines, or null
                            when uncertain.
                          properties:
                            id:
                              type: string
                              description: Its id.
                            at:
                              type: string
                              description: The edit's time.
                            message:
                              type: string
                              description: The edit's reason.
                            author:
                              type: string
                              description: 'Team memory: who.'
                            html_url:
                              type: string
                              description: The commit on the dashboard.
                      required:
                        - startingLine
                        - endingLine
                        - lines
                        - uncertain
                        - commit
                required:
                  - path
                  - ranges
                  - lines
                  - whole
        '401':
          description: Missing or invalid key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NemonistError'
        '404':
          description: >-
            No such note, no such commit, a commit that did not change the note,
            or no such folder.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NemonistError'
        '409':
          description: The note as of that commit cannot be rebuilt from its kept history.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NemonistError'
        '500':
          description: 'Nemonist: an internal error answered this request; retry.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NemonistError'
        '503':
          description: 'Nemonist: the account service is temporarily unavailable; retry.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NemonistError'
components:
  schemas:
    NemonistError:
      type: object
      description: An error answer.
      required:
        - error
      properties:
        error:
          type: object
          description: What went wrong.
          required:
            - message
          properties:
            code:
              type:
                - integer
                - string
              description: HTTP status or a short error code.
            type:
              type: string
              description: Error kind, such as proxy_error.
            message:
              type: string
              description: Human-readable error message.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        A Nemonist key (sk-nm-...) as a bearer token in the Authorization
        header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.