SubCenter.io Workspace API

The Workspace API from SubCenter.io — 5 operation(s) for workspace.

GitHub OpenAPI

Operations 5

GET /workspaces Workspaces this credential can reach #
GET /workspaces/{workspace_id} The workspace, and what this credential may do in it #
GET /workspaces/{workspace_id}/summary Spend, renewals and decisions due in the next 30 days #
GET /workspaces/{workspace_id}/renewals Renewals and cancel-by deadlines coming up #
PATCH /workspaces/{workspace_id}/membership The signed-in member's own settings. Not available to agents #

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/subcenter-io:subcenter-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

subcenter-io-workspace-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SubCenter for Teams Workspace API
  version: '1.0'
  summary: Track a team's SaaS and AI tools, invoices, seats and client bill-back.
  description: 'The API behind the SubCenter for Teams apps, open to agents and scripts.

    Every path is scoped to one workspace.


    **Authentication.** Send `Authorization: Bearer `. Agents use a

    workspace API key (`sck_…`, made under Settings → Agents & API) or an

    OAuth 2.1 connection (authorization code with PKCE; see

    `/.well-known/oauth-authorization-server`). Both are bound to a single

    workspace and act as the member who created them.


    **Scopes.** `read` is always granted. Writes need a scope, listed on each

    operation as `x-required-scope`. Scopes never exceed the member''s role:

    admin-only scopes (`clients:write`, `people:write`, `exports`, `webhooks`)

    stop working if the member is no longer an admin.


    **Safety.** Destructive operations accept `dry_run=true` and return what

    would change. Writes accept an `Idempotency-Key` header (up to 255

    characters, kept 24 hours); a retry with the same key replays the first

    response with `Idempotent-Replayed: true`.


    **Errors** are `{ error, code, details?, docs_url }`. Common codes:

    `not_found`, `invalid`, `insufficient_scope`, `admin_required`,

    `read_only`, `plan_lapsed`, `rate_limited`, `idempotency_key_reused`.


    **Lists** take `limit` (up to 200) and `cursor`, and return `next_cursor`

    until there''s nothing more.


    **Rate limits.** 120 requests a minute per credential and 600 a minute

    per workspace. A 429 carries `Retry-After`.


    Amounts come as formatted strings (`"€24.00"`) and integer cents in the

    stated currency. Reports are in the workspace currency, net of VAT unless

    the workspace''s `amounts_include_vat` is true.'
  contact:
    name: SubCenter
    url: https://subcenter.io/teams/developers
servers:
- url: https://subcenter.io/api/v1/teams
security:
- apiKey: []
- oauth2:
  - read
tags:
- name: Workspace
paths:
  /workspaces:
    get:
      tags:
      - Workspace
      operationId: listWorkspaces
      summary: Workspaces this credential can reach
      description: An API key or OAuth connection sees only its own workspace.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspaces:
                    type: array
                    items:
                      $ref: '#/components/schemas/Workspace'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /workspaces/{workspace_id}:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    get:
      tags:
      - Workspace
      operationId: getWorkspace
      summary: The workspace, and what this credential may do in it
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspace:
                    $ref: '#/components/schemas/Workspace'
                  access:
                    type: object
                    properties:
                      member:
                        type: string
                        description: Email of the member the credential acts as
                      role:
                        type: string
                        enum:
                        - owner
                        - admin
                        - member
                      via:
                        type: string
                        enum:
                        - mobile
                        - api_key
                        - oauth
                      scopes:
                        type: array
                        items:
                          $ref: '#/components/schemas/Scope'
        '404':
          $ref: '#/components/responses/NotFound'
  /workspaces/{workspace_id}/summary:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    get:
      tags:
      - Workspace
      operationId: getSpendSummary
      summary: Spend, renewals and decisions due in the next 30 days
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspace:
                    $ref: '#/components/schemas/Workspace'
                  monthly_cost:
                    type: string
                  decisions_due:
                    type: array
                    items:
                      $ref: '#/components/schemas/Tool'
                  upcoming_renewals:
                    type: array
                    items:
                      $ref: '#/components/schemas/Tool'
                  spend:
                    type: object
                    properties:
                      currency:
                        type: string
                      monthly_run_rate_cents:
                        type: integer
                      annual_run_rate:
                        type: string
                      annual_run_rate_cents:
                        type: integer
                      by_category:
                        type: array
                        items:
                          type: object
                          properties:
                            category:
                              type: string
                            monthly:
                              type: string
                            monthly_cents:
                              type: integer
                      ai_monthly:
                        type: string
                      ai_share_percent:
                        type: integer
                      unused_seat_cost:
                        type: string
                      unused_seat_tools:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                            unused_seats:
                              type: integer
                      tools_without_owner:
                        type: integer
                      next_twelve_months:
                        type: array
                        items:
                          type: object
                          properties:
                            month:
                              type: string
                              example: 2026-11
                            amount:
                              type: string
                            amount_cents:
                              type: integer
  /workspaces/{workspace_id}/renewals:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    get:
      tags:
      - Workspace
      operationId: listRenewals
      summary: Renewals and cancel-by deadlines coming up
      parameters:
      - name: within_days
        in: query
        schema:
          type: integer
          default: 30
          minimum: 1
          maximum: 365
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  today:
                    type: string
                    format: date
                  within_days:
                    type: integer
                  renewals:
                    type: array
                    items:
                      $ref: '#/components/schemas/Tool'
                  decisions_due:
                    type: array
                    description: Contracts that renew by themselves unless cancelled by `cancel_by`.
                    items:
                      $ref: '#/components/schemas/Tool'
  /workspaces/{workspace_id}/membership:
    parameters:
    - $ref: '#/components/parameters/WorkspaceId'
    patch:
      tags:
      - Workspace
      operationId: updateOwnMembership
      summary: The signed-in member's own settings. Not available to agents
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                push_notifications:
                  type: boolean
      responses:
        '200':
          description: Saved
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  responses:
    NotFound:
      description: Not in this workspace
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, unknown, revoked or expired credential
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: insufficient_scope, admin_required, read_only or plan_lapsed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      - code
      properties:
        error:
          type: string
          description: For people
        code:
          type: string
          description: For programs
        details:
          type: object
        docs_url:
          type: string
    Workspace:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        role:
          type: string
          enum:
          - owner
          - admin
          - member
        admin:
          type: boolean
        plan:
          type: string
        billing_status:
          type: string
          enum:
          - trialing
          - active
          - past_due
          - canceled
        trial_days_left:
          type:
          - integer
          - 'null'
        accessible:
          type: boolean
        writable:
          type: boolean
        default_currency:
          type: string
        amounts_include_vat:
          type: boolean
          description: True when the workspace isn't VAT registered
          so reports include VAT: null
        forwarding_address:
          type: string
          description: Forward invoice emails here
        pending_invoices_count:
          type: integer
        decisions_due_count:
          type: integer
    Scope:
      type: string
      enum:
      - read
      - tools:write
      - invoices:write
      - clients:write
      - people:write
      - exports
      - webhooks
    Tool:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        status:
          type: string
          enum:
          - active
          - cancelled
        category:
          type:
          - string
          - 'null'
        domain:
          type:
          - string
          - 'null'
        trial:
          type: boolean
        cost_cents:
          type: integer
        cost_currency:
          type: string
        cost:
          type: string
        cadence:
          type: string
        seats:
          type:
          - integer
          - 'null'
        monthly_cost:
          type:
          - string
          - 'null'
          description: Net monthly equivalent in the workspace currency
        monthly_cost_cents:
          type:
          - integer
          - 'null'
        renewal_date:
          type: string
          format: date
        days_until_renewal:
          type: integer
        notice_days:
          type: integer
        cancel_by:
          type:
          - string
          - 'null'
          format: date
        kept:
          type: boolean
        owner_membership_id:
          type:
          - string
          - 'null'
        owner_email:
          type:
          - string
          - 'null'
  parameters:
    WorkspaceId:
      name: workspace_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A workspace API key (sck_…) from Settings → Agents & API.
    oauth2:
      type: oauth2
      description: Authorization code with PKCE (S256). Clients can register themselves at /oauth/register.
      flows:
        authorizationCode:
          authorizationUrl: https://subcenter.io/oauth/authorize
          tokenUrl: https://subcenter.io/oauth/token
          refreshUrl: https://subcenter.io/oauth/token
          scopes:
            read: Read tools, invoices, people, clients, reports and activity
            tools:write: Add, change and cancel tools, assign seats
            invoices:write: Upload, confirm and dismiss invoices
            clients:write: Add, rename and archive clients (admins)
            people:write: Invite, offboard and remove people, change roles (admins)
            exports: Prepare downloads of invoices and workspace data (admins)
            webhooks: Manage webhook endpoints (admins)