Anthropic · Capability

Anthropic Admin API — Workspaces

Anthropic Admin API — Workspaces. 5 operations. Lead operation: Anthropic List Workspaces. Self-contained Naftiko capability covering one Anthropic business surface.

Run with Naftiko AnthropicWorkspaces

What You Can Do

GET
Listworkspaces — Anthropic List Workspaces
/v1/organizations/workspaces
POST
Createworkspace — Anthropic Create Workspace
/v1/organizations/workspaces
GET
Getworkspace — Anthropic Get Workspace
/v1/organizations/workspaces/{workspace-id}
POST
Updateworkspace — Anthropic Update Workspace
/v1/organizations/workspaces/{workspace-id}
POST
Archiveworkspace — Anthropic Archive Workspace
/v1/organizations/workspaces/{workspace-id}/archive

MCP Tools

anthropic-list-workspaces

Anthropic List Workspaces

read-only idempotent
anthropic-create-workspace

Anthropic Create Workspace

anthropic-get-workspace

Anthropic Get Workspace

read-only idempotent
anthropic-update-workspace

Anthropic Update Workspace

anthropic-archive-workspace

Anthropic Archive Workspace

Capability Spec

admin-workspaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Anthropic Admin API — Workspaces
  description: 'Anthropic Admin API — Workspaces. 5 operations. Lead operation: Anthropic List Workspaces. Self-contained
    Naftiko capability covering one Anthropic business surface.'
  tags:
  - Anthropic
  - Workspaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ANTHROPIC_API_KEY: ANTHROPIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-workspaces
    baseUri: https://api.anthropic.com/v1
    description: Anthropic Admin API — Workspaces business capability. Self-contained, no shared references.
    resources:
    - name: organizations-workspaces
      path: /organizations/workspaces
      operations:
      - name: listworkspaces
        method: GET
        description: Anthropic List Workspaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: include_archived
          in: query
          type: boolean
          description: Whether to include archived workspaces in the response
      - name: createworkspace
        method: POST
        description: Anthropic Create Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: organizations-workspaces-workspace_id
      path: /organizations/workspaces/{workspace_id}
      operations:
      - name: getworkspace
        method: GET
        description: Anthropic Get Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateworkspace
        method: POST
        description: Anthropic Update Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: organizations-workspaces-workspace_id-archive
      path: /organizations/workspaces/{workspace_id}/archive
      operations:
      - name: archiveworkspace
        method: POST
        description: Anthropic Archive Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: x-api-key
      value: '{{env.ANTHROPIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: admin-workspaces-rest
    port: 8080
    description: REST adapter for Anthropic Admin API — Workspaces. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/organizations/workspaces
      name: organizations-workspaces
      description: REST surface for organizations-workspaces.
      operations:
      - method: GET
        name: listworkspaces
        description: Anthropic List Workspaces
        call: admin-workspaces.listworkspaces
        with:
          include_archived: rest.include_archived
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createworkspace
        description: Anthropic Create Workspace
        call: admin-workspaces.createworkspace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/workspaces/{workspace-id}
      name: organizations-workspaces-workspace-id
      description: REST surface for organizations-workspaces-workspace_id.
      operations:
      - method: GET
        name: getworkspace
        description: Anthropic Get Workspace
        call: admin-workspaces.getworkspace
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updateworkspace
        description: Anthropic Update Workspace
        call: admin-workspaces.updateworkspace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/workspaces/{workspace-id}/archive
      name: organizations-workspaces-workspace-id-archive
      description: REST surface for organizations-workspaces-workspace_id-archive.
      operations:
      - method: POST
        name: archiveworkspace
        description: Anthropic Archive Workspace
        call: admin-workspaces.archiveworkspace
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-workspaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for Anthropic Admin API — Workspaces. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: anthropic-list-workspaces
      description: Anthropic List Workspaces
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-workspaces.listworkspaces
      with:
        include_archived: tools.include_archived
      outputParameters:
      - type: object
        mapping: $.
    - name: anthropic-create-workspace
      description: Anthropic Create Workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-workspaces.createworkspace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: anthropic-get-workspace
      description: Anthropic Get Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-workspaces.getworkspace
      outputParameters:
      - type: object
        mapping: $.
    - name: anthropic-update-workspace
      description: Anthropic Update Workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-workspaces.updateworkspace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: anthropic-archive-workspace
      description: Anthropic Archive Workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-workspaces.archiveworkspace
      outputParameters:
      - type: object
        mapping: $.