Scott Ai snapshots API

The snapshots API from Scott Ai — 7 operation(s) for snapshots.

Operations 7

POST /agent-loop/workspaces/{workspace_id}/snapshots Create Snapshot #
PATCH /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/commit Commit Snapshot #
PATCH /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/discard Discard Snapshot #
PATCH /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/has-user-edits Set Snapshot Has User Edits #
POST /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/suggestion/accept Accept Snapshot Suggestion #
POST /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/suggestion/reject Reject Snapshot Suggestion #
PATCH /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/rename Rename Snapshot #

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/scott-ai-snapshots-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

scott-ai-snapshots-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: One-Shot access Snapshots API
  version: 1.0.0
servers:
- url: https://api.tryscott.ai
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: snapshots
paths:
  /agent-loop/workspaces/{workspace_id}/snapshots:
    post:
      tags:
      - snapshots
      summary: Create Snapshot
      operationId: create_snapshot
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSnapshotRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/commit:
    patch:
      tags:
      - snapshots
      summary: Commit Snapshot
      operationId: commit_snapshot
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: snapshot_id
        in: path
        required: true
        schema:
          type: string
          title: Snapshot Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommitSnapshotRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/discard:
    patch:
      tags:
      - snapshots
      summary: Discard Snapshot
      operationId: discard_snapshot
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: snapshot_id
        in: path
        required: true
        schema:
          type: string
          title: Snapshot Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/has-user-edits:
    patch:
      tags:
      - snapshots
      summary: Set Snapshot Has User Edits
      description: Set the has_user_edits flag (trunk-draft reset clears it to the empty visual state).
      operationId: set_snapshot_has_user_edits
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: snapshot_id
        in: path
        required: true
        schema:
          type: string
          title: Snapshot Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetHasUserEditsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/suggestion/accept:
    post:
      tags:
      - snapshots
      summary: Accept Snapshot Suggestion
      operationId: accept_snapshot_suggestion
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: snapshot_id
        in: path
        required: true
        schema:
          type: string
          title: Snapshot Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/suggestion/reject:
    post:
      tags:
      - snapshots
      summary: Reject Snapshot Suggestion
      operationId: reject_snapshot_suggestion
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: snapshot_id
        in: path
        required: true
        schema:
          type: string
          title: Snapshot Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /agent-loop/workspaces/{workspace_id}/snapshots/{snapshot_id}/rename:
    patch:
      tags:
      - snapshots
      summary: Rename Snapshot
      operationId: rename_snapshot
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      - name: snapshot_id
        in: path
        required: true
        schema:
          type: string
          title: Snapshot Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RenameSnapshotRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SetHasUserEditsRequest:
      properties:
        has_user_edits:
          type: boolean
          title: Has User Edits
      type: object
      required:
      - has_user_edits
      title: SetHasUserEditsRequest
    CreateSnapshotRequest:
      properties:
        parent_snapshot_id:
          type: string
          title: Parent Snapshot Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
      type: object
      required:
      - parent_snapshot_id
      title: CreateSnapshotRequest
    SnapshotResponse:
      properties:
        id:
          type: string
          title: Id
        document_artifact_id:
          type: string
          title: Document Artifact Id
        parent_snapshot_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Snapshot Id
        turn_id:
          type: string
          title: Turn Id
        kind:
          type: string
          enum:
          - node
          - capture
          title: Kind
        status:
          type: string
          enum:
          - draft
          - committed
          - discarded
          title: Status
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        created_at:
          type: string
          format: date-time
          title: Created At
        has_user_edits:
          type: boolean
          title: Has User Edits
          default: false
      type: object
      required:
      - id
      - document_artifact_id
      - parent_snapshot_id
      - turn_id
      - kind
      - status
      - name
      - created_at
      title: SnapshotResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    RenameSnapshotRequest:
      properties:
        name:
          type: string
          title: Name
      type: object
      required:
      - name
      title: RenameSnapshotRequest
    CommitSnapshotRequest:
      properties:
        name:
          type: string
          title: Name
        blocks:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Blocks
        markdown:
          anyOf:
          - type: string
          - type: 'null'
          title: Markdown
      type: object
      required:
      - name
      title: CommitSnapshotRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer