Shruwd Workspace API

Plan, entitlements, usage.

GitHub OpenAPI

Operations 1

GET /workspace The caller's workspace #

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/shruwd-io:shruwd-io-workspace-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

shruwd-io-workspace-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shruwd Workspace API
  version: '1'
  summary: Measure how a brand appears in AI answers, diagnose why, and prove movement.
  description: 'Shruwd tracks how a brand and its competitors show up in AI-generated answers

    (Google AI Overviews, Google AI Mode, ChatGPT, Gemini and Perplexity), sets that beside first-party AI-crawler

    logs, diagnoses **why** the brand is or is not cited, and re-checks

    whether a fix moved anything.


    **Authentication.** `Authorization: Bearer sh_live_…`. Keys are minted in the

    dashboard and carry scopes: `read` (every GET), `write` (everything else), or

    `default` (both). A dashboard session works too.


    **Tenant.** A key works on the one workspace it was minted for. A dashboard

    session works on the workspace named by the `X-Shruwd-Workspace` header, else

    the caller''s own; a key ignores the header. Within it, the caller reaches the

    brands they have access to: every brand for the workspace''s owner, a

    member''s own brands otherwise. A brand, prompt, entity, suggestion or finding

    that belongs to another workspace, or to a brand the caller cannot reach, is a

    `404`, indistinguishable from one that does not exist.


    **Roles.** Access is per brand. The workspace''s owner has every brand, and

    alone creates and archives brands and handles billing. Everyone else is a

    member of specific brands with a role on each: `viewer`, `editor` or

    `admin`. A request is judged on the caller''s role on the brand it acts on:

    reads need `viewer`, writes `editor`, minting an ingest token `admin`. A key

    reaches its holder''s brands, as they change, and never exceeds their role on

    any of them. Refusals are `403 not_a_member` and `403 insufficient_role`.


    **Errors.** The body is always `{ code, message, retryable, details? }` with the

    HTTP status. `retryable: true` (429, 5xx) may be retried with backoff;

    `Retry-After` is set on 429.


    **Rate limits.** Per key, per minute: 120 GET, 30 for everything else.


    **Metrics.** Every metric is a `DisplayableMetric`: a point estimate with its

    95% interval and `n`, or `insufficient_data` when fewer than ten responses

    exist, or `undefined` when the denominator is zero. `insufficient_data` is

    **not** zero. Do not report it as a number.


    **Measurement is asynchronous.** Creating a brand or a cycle schedules work;

    results arrive over the following hours and are read from `visibility`,

    `crawlers` and `findings`.'
  contact:
    name: Shruwd
    url: https://shruwd.io
  x-logo:
    url: https://shruwd.io/android-chrome-192x192.png
servers:
- url: https://shruwd.io/api/v1
security:
- apiKey: []
tags:
- name: Workspace
  description: Plan, entitlements, usage.
paths:
  /workspace:
    get:
      operationId: getWorkspace
      tags:
      - Workspace
      summary: The caller's workspace
      description: 'Plan, resolved entitlements (plan plus any one-off grant — what the

        scheduler applies), usage against the period allowance, and the brands

        the caller can reach with their role on each. Call this first: it says

        what the plan will let you do before you try. Usage is the whole

        workspace''s, since the allowances are shared across its brands.'
      responses:
        '200':
          description: The workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workspace'
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    Entitlements:
      type: object
      description: The limits in force for the workspace — the plan plus any one-off grant.
      required:
      - planCode
      - maxBrands
      - maxPrompts
      - maxMembers
      - maxVisibleFindings
      - repsPerCycle
      - engines
      - cadence
      - snapshot
      - rechecksPerMonth
      - historyDays
      - crawlerLinesPerMonth
      - findingFamilies
      - connections
      - overageAllowed
      - runsPerPeriod
      - overridden
      properties:
        planCode:
          type: string
          examples:
          - starter_v1
        maxBrands:
          type: integer
        maxPrompts:
          type: integer
          description: Active prompts across every brand in the workspace.
        maxMembers:
          type: integer
          description: People with access, the owner included. Open invites count toward it.
        maxVisibleFindings:
          type:
          - integer
          - 'null'
          description: Findings shown in full, the first N in rank order. Null shows every finding. The rest are counted in a findings list's `locked`.
        repsPerCycle:
          type: integer
          description: Repetitions per prompt per engine per cycle.
        engines:
          type: array
          items:
            $ref: '#/components/schemas/Engine'
        cadence:
          type: string
          enum:
          - weekly
          - none
          description: '`weekly` schedules a cycle per brand per week. `none` schedules nothing; see `snapshot`.'
        snapshot:
          type: boolean
          description: True on the free tier — one measurement at setup, once per registrable domain.
        rechecksPerMonth:
          type: integer
        historyDays:
          type: integer
          description: How far back reads go. Older data is kept, not shown.
        crawlerLinesPerMonth:
          type: integer
        findingFamilies:
          type: array
          items:
            type: string
            enum:
            - ACCESS
            - STRUCT
            - CITE
            - FACT
            - COVERAGE
        connections:
          type: array
          items:
            type: string
            enum:
            - gsc
            - ga4
            - logdrain
            - cloudflare_logpush
        overageAllowed:
          type: boolean
        runsPerPeriod:
          type: integer
          description: Hard ceiling on runs per billing period.
        overridden:
          type: boolean
          description: True when a one-off grant changed at least one limit.
    Error:
      type: object
      required:
      - code
      - message
      - retryable
      properties:
        code:
          type: string
          description: Stable, machine-readable. E.g. `not_found`, `plan_limit`, `rate_limited`, `context_terms_required`.
        message:
          type: string
          description: For a person. May change between releases.
        retryable:
          type: boolean
          description: True when the same request may succeed later (429, 5xx).
        details:
          type: object
          additionalProperties: true
    Workspace:
      type: object
      required:
      - workspaceId
      - planCode
      - status
      - role
      - hold
      - entitlements
      - usage
      - brands
      properties:
        workspaceId:
          type: string
        planCode:
          type: string
        status:
          type: string
          enum:
          - active
          - past_due
          - canceled
        role:
          type: string
          enum:
          - owner
          - member
          description: '`owner`: the workspace''s owner, with every brand. `member`: a member of the brands listed, with the role on each in that brand''s `role`.'
        hold:
          oneOf:
          - type: object
            required:
            - reason
            - since
            properties:
              reason:
                type: string
              since:
                type:
                - string
                - 'null'
                format: date-time
          - type: 'null'
          description: Set when measurement is paused pending review (a cost guardrail, or an operator). Nothing runs while it is set; `POST …/cycles` answers `409 workspace_on_hold`. Null normally.
        entitlements:
          $ref: '#/components/schemas/Entitlements'
        usage:
          type: object
          required:
          - runsThisPeriod
          - runsAllowance
          - rechecksThisMonth
          - rechecksAllowance
          - activePrompts
          - promptsAllowance
          properties:
            runsThisPeriod:
              type: integer
            runsAllowance:
              type: integer
            rechecksThisMonth:
              type: integer
            rechecksAllowance:
              type: integer
            activePrompts:
              type: integer
              description: 'Active prompts across every brand in the workspace, including brands the caller cannot reach: one pool.'
            promptsAllowance:
              type: integer
        brands:
          type: array
          description: The brands the caller can reach.
          items:
            type: object
            required:
            - brandId
            - slug
            - name
            - domain
            - role
            properties:
              brandId:
                type: string
              slug:
                type: string
              name:
                type: string
              domain:
                type: string
              role:
                $ref: '#/components/schemas/BrandRole'
    BrandRole:
      type: string
      enum:
      - viewer
      - editor
      - admin
      - owner
      description: 'The caller''s role on this brand: `owner` for the workspace''s owner, else the role they were given on it. Reads need `viewer`, writes `editor`.'
    Engine:
      type: string
      enum:
      - google_aio
      - google_ai_mode
      - chatgpt
      - gemini
      - perplexity
      description: '`google_aio` — Google AI Overviews. `google_ai_mode` — Google AI Mode, tracked since 2026-10-15. `chatgpt` — ChatGPT. `gemini` — Gemini, tracked since 2026-11-10. `perplexity` — Perplexity, asked through its Sonar API, tracked since 2026-11-11.'
  responses:
    Error:
      description: Every failure has this body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: sh_live_…
      description: An API key minted in the dashboard, or a dashboard session.