SafeGrd Snapshots API

The Snapshots API from SafeGrd — 2 operation(s) for snapshots.

GitHub OpenAPI

Operations 2

GET /api/v1/snapshots A surface's snapshots: when, how big, locked until when, whether a drill… #
GET /api/v1/snapshots/{snapshot_id} One snapshot's recorded metadata: digests, counts, lock, Threat Shield verdict #

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/safegrd-dev:safegrd-dev-snapshots-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

safegrd-dev-snapshots-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SafeGrd Snapshots API
  version: '1'
  description: 'The part of SafeGrd''s /api/v1 an agent needs: read backups and Fire Drills, and ask for a backup or a drill. Authenticate with a personal access token from the console (Tokens). A personal access token cannot delete, disable, re-route or re-key anything, on any route. The same operations are served as MCP tools at https://safegrd.dev/mcp; see https://safegrd.dev/docs/mcp.'
servers:
- url: https://safegrd.dev
security:
- bearer: []
tags:
- name: Snapshots
paths:
  /api/v1/snapshots:
    get:
      operationId: listSnapshots
      summary: 'A surface''s snapshots: when, how big, locked until when, whether a drill…'
      parameters:
      - name: node_id
        in: query
        required: false
        schema:
          type: string
        description: The surface. Without paging this is its whole history, which `safegrd verify` walks to check the attestation chain.
      - name: org_id
        in: query
        required: false
        schema:
          type: string
        description: Only this organization, which must be one of the caller's
      - name: project_id
        in: query
        required: false
        schema:
          type: string
        description: Only this project's surfaces
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 200
        description: Ask for a page of this many, newest first (default 50, at most 200). With limit or cursor the response is a Page; without either it is the whole list as a bare array.
      - name: cursor
        in: query
        required: false
        schema:
          type: string
        description: next_cursor from the previous page. Opaque; a key, not an offset, so rows arriving meanwhile never repeat or skip one.
      responses:
        '200':
          description: 'Snapshots, each a summary: its per-table, per-file and per-folder statistics are in GET /api/v1/snapshots/{id}'
          content:
            application/json:
              schema:
                oneOf:
                - type: array
                  items:
                    type: object
                - $ref: '#/components/schemas/Page'
        '401':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '400':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Snapshots
  /api/v1/snapshots/{snapshot_id}:
    get:
      operationId: getSnapshot
      summary: 'One snapshot''s recorded metadata: digests, counts, lock, Threat Shield verdict'
      parameters:
      - name: snapshot_id
        in: path
        required: true
        schema:
          type: string
        description: ''
      responses:
        '200':
          description: The snapshot
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Snapshots
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
    Page:
      type: object
      description: One page of a list, newest first. next_cursor is absent on the last page.
      properties:
        items:
          type: array
          items:
            type: object
        next_cursor:
          type: string
      required:
      - items
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A personal access token (sg_pat_...)