LiveGraph Files API

The files API from LiveGraph — 7 operation(s) for files.

GitHub OpenAPI

Operations 8

GET /files List indexed files (worktree writes, uploads, outputs) — keyset-paginated #
GET /files/{id}/content Preview a file's contents (reads the worktree/store filesystem) #
PUT /files/{id}/content Edit a file's contents — bounded by the preview byte cap #
GET /files/{id}/download Download a file with its stored content type #
GET /files/{id} File metadata (path, source, graph, size) #
GET /files/repos List repos reachable via the caller's GitHub credential #
GET /files/repos/{owner}/{repo}/tree Browse a GitHub repo's directory tree via the caller's credential (60s cached) #
GET /files/repos/{owner}/{repo}/file Fetch a single file's contents from a GitHub repo via the caller's credential #

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/livegraph-ai:livegraph-ai-files-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

livegraph-ai-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LiveGraph Files API
  version: 1.0.0
  description: LiveGraph — the live, editable agent canvas. Authenticate with the livegraph_session cookie or an x-api-key header. Errors share the {error, code?} envelope; validation failures return 400.
security:
- sessionCookie: []
- apiKey: []
tags:
- name: Files
paths:
  /files:
    get:
      summary: List indexed files (worktree writes, uploads, outputs) — keyset-paginated
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: graphId
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: source
        in: query
        required: false
        schema:
          type: string
          enum:
          - worktree
          - file_root
          - pdfwork
          - github
      - name: q
        in: query
        required: false
        schema:
          type: string
          maxLength: 500
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 500
          default: 100
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
      - name: cursor
        in: query
        required: false
        schema:
          type: string
          maxLength: 200
      operationId: getFiles
      x-operation-id-source: derived
  /files/{id}/content:
    get:
      summary: Preview a file's contents (reads the worktree/store filesystem)
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      operationId: getFilesByIdContent
      x-operation-id-source: derived
    put:
      summary: Edit a file's contents — bounded by the preview byte cap
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  maxLength: 524288
              required:
              - text
              additionalProperties: false
              $schema: http://json-schema.org/draft-07/schema#
      operationId: putFilesByIdContent
      x-operation-id-source: derived
  /files/{id}/download:
    get:
      summary: Download a file with its stored content type
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      operationId: getFilesByIdDownload
      x-operation-id-source: derived
  /files/{id}:
    get:
      summary: File metadata (path, source, graph, size)
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      operationId: getFilesById
      x-operation-id-source: derived
  /files/repos:
    get:
      summary: List repos reachable via the caller's GitHub credential
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: repo
        in: query
        required: false
        schema:
          type: string
          maxLength: 200
      operationId: getFilesRepos
      x-operation-id-source: derived
  /files/repos/{owner}/{repo}/tree:
    get:
      summary: Browse a GitHub repo's directory tree via the caller's credential (60s cached)
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: owner
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Za-z0-9_.-]+$
      - name: repo
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Za-z0-9_.-]+$
      - name: ref
        in: query
        required: false
        schema:
          type: string
          maxLength: 255
      - name: path
        in: query
        required: false
        schema:
          type: string
          maxLength: 512
      operationId: getFilesReposByOwnerByRepoTree
      x-operation-id-source: derived
  /files/repos/{owner}/{repo}/file:
    get:
      summary: Fetch a single file's contents from a GitHub repo via the caller's credential
      tags:
      - Files
      responses:
        '200':
          description: Success — see summary for the response shape.
        4XX:
          description: Client error — body is the shared {error, code?} envelope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      parameters:
      - name: owner
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Za-z0-9_.-]+$
      - name: repo
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Za-z0-9_.-]+$
      - name: ref
        in: query
        required: false
        schema:
          type: string
          maxLength: 255
      - name: path
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 512
      operationId: getFilesReposByOwnerByRepoFile
      x-operation-id-source: derived
components:
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: cookie
      name: livegraph_session
    apiKey:
      type: apiKey
      in: header
      name: x-api-key