SafeGrd Orgs API

The Orgs API from SafeGrd — 7 operation(s) for orgs.

GitHub OpenAPI

Operations 7

GET /api/v1/orgs Organizations the caller belongs to, with plan and quotas #
GET /api/v1/orgs/{org_id}/projects An organization's projects #
GET /api/v1/orgs/{org_id}/storage Hosted storage: whether it is offered, the quota, and how much is locked #
GET /api/v1/orgs/{org_id}/drill-stats Fire Drill statistics across an organization #
GET /api/v1/orgs/{org_id}/add-surface The console link and steps to add a surface. Changes nothing #
GET /api/v1/orgs/{org_id}/add-host The commands that enroll a host and take its first backup. Changes nothing #
GET /api/v1/orgs/{org_id}/recovery Each surface's recovery point and restore time, measured from its snapshots and… #

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-orgs-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-orgs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SafeGrd Orgs 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: Orgs
paths:
  /api/v1/orgs:
    get:
      operationId: listOrganizations
      summary: Organizations the caller belongs to, with plan and quotas
      responses:
        '200':
          description: Organizations
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        '401':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Orgs
  /api/v1/orgs/{org_id}/projects:
    get:
      operationId: listProjects
      summary: An organization's projects
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
        description: ''
      responses:
        '200':
          description: Projects
          content:
            application/json:
              schema:
                type: array
                items:
                  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:
      - Orgs
  /api/v1/orgs/{org_id}/storage:
    get:
      operationId: storageUsage
      summary: 'Hosted storage: whether it is offered, the quota, and how much is locked'
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
        description: ''
      responses:
        '200':
          description: Usage
          content:
            application/json:
              schema:
                type: object
                properties:
                  offered:
                    type: boolean
                  quota_bytes:
                    type: integer
                    description: Hosted storage the plan includes
                  used_bytes:
                    type: integer
                    description: Locked, or granted to an upload in flight
                  regime:
                    type: string
                    enum:
                    - quota
                    - metered
                    - lapsed
                    description: 'quota: refused at quota_bytes (free plan, trial). metered: never refused for size; the period''s average above quota_bytes is billed per GB-month. lapsed: refused past limit_bytes'
                  limit_bytes:
                    type: integer
                    description: Where uploads are refused, when that differs from quota_bytes
                  overage_cents_per_gb_month:
                    type: integer
                    description: 'Metered plans: the price of a GB-month above the quota, in US cents'
                  period_start:
                    type: string
                    format: date-time
                  period_overage_gb_months:
                    type: integer
                    description: 'Metered plans: GB-months above the quota this period so far, rounded down'
                  period_overage_cents:
                    type: integer
                    description: 'Metered plans: what this period''s overage comes to so far, in US cents'
                  lapsed_plan:
                    type: string
                    description: 'Lapsed: the last plan paid for, whose quota sets limit_bytes'
                  last_lock_expires_at:
                    type: string
                    format: date-time
                    description: When the last byte held stops being locked
        '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:
      - Orgs
  /api/v1/orgs/{org_id}/drill-stats:
    get:
      operationId: drillStats
      summary: Fire Drill statistics across an organization
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
        description: ''
      responses:
        '200':
          description: Statistics
          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:
      - Orgs
  /api/v1/orgs/{org_id}/add-surface:
    get:
      operationId: addSurfaceGuide
      summary: The console link and steps to add a surface. Changes nothing
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
        description: ''
      - name: kind
        in: query
        required: true
        schema:
          type: string
          enum:
          - supabase
          - digitalocean
          - heroku
          - connection_string
          - bucket
          - on_host
        description: Where the data is.
      - name: project_id
        in: query
        required: false
        schema:
          type: string
        description: 'Project to add it to. Default: the organization''s default project.'
      responses:
        '200':
          description: The link, the steps, and whether this caller can finish them
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddGuide'
        '400':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '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:
      - Orgs
  /api/v1/orgs/{org_id}/add-host:
    get:
      operationId: addHostGuide
      summary: The commands that enroll a host and take its first backup. Changes nothing
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
        description: ''
      - name: project_id
        in: query
        required: false
        schema:
          type: string
        description: 'Project to add it to. Default: the organization''s default project.'
      responses:
        '200':
          description: The commands and steps
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddGuide'
        '400':
          description: Refused. The body says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '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:
      - Orgs
  /api/v1/orgs/{org_id}/recovery:
    get:
      operationId: recovery
      summary: Each surface's recovery point and restore time, measured from its snapshots and…
      parameters:
      - name: org_id
        in: path
        required: true
        schema:
          type: string
        description: ''
      responses:
        '200':
          description: One row per surface, with the window and sample counts behind each figure
          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:
      - Orgs
components:
  schemas:
    AddGuide:
      type: object
      properties:
        kind:
          type: string
        console_url:
          type: string
        steps:
          type: array
          items:
            type: string
        commands:
          type: array
          items:
            type: string
        can_finish:
          type: boolean
          description: False when this caller, plan or server cannot complete it; note says why.
        note:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A personal access token (sg_pat_...)