Cribl · Capability

Cribl As Code API — Workspaces

Cribl As Code API — Workspaces. 5 operations. Lead operation: List all workspaces. Self-contained Naftiko capability covering one Cribl business surface.

Run with Naftiko CriblWorkspaces

What You Can Do

GET
Listworkspaces — List all workspaces
/v1/v1/organizations/{organizationid}/workspaces
POST
Createworkspace — Create a workspace
/v1/v1/organizations/{organizationid}/workspaces
GET
Getworkspace — Get a workspace by ID
/v1/v1/organizations/{organizationid}/workspaces/{workspaceid}
PATCH
Updateworkspace — Update a workspace
/v1/v1/organizations/{organizationid}/workspaces/{workspaceid}
DELETE
Deleteworkspace — Delete a workspace
/v1/v1/organizations/{organizationid}/workspaces/{workspaceid}

MCP Tools

list-all-workspaces

List all workspaces

read-only idempotent
create-workspace

Create a workspace

get-workspace-id

Get a workspace by ID

read-only idempotent
update-workspace

Update a workspace

idempotent
delete-workspace

Delete a workspace

idempotent

Capability Spec

as-code-workspaces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Cribl As Code API — Workspaces
  description: 'Cribl As Code API — Workspaces. 5 operations. Lead operation: List all workspaces. Self-contained Naftiko
    capability covering one Cribl business surface.'
  tags:
  - Cribl
  - Workspaces
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CRIBL_API_KEY: CRIBL_API_KEY
capability:
  consumes:
  - type: http
    namespace: as-code-workspaces
    baseUri: https://gateway.cribl.cloud
    description: Cribl As Code API — Workspaces business capability. Self-contained, no shared references.
    resources:
    - name: v1-organizations-organizationId-workspaces
      path: /v1/organizations/{organizationId}/workspaces
      operations:
      - name: listworkspaces
        method: GET
        description: List all workspaces
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createworkspace
        method: POST
        description: Create a workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-organizations-organizationId-workspaces-workspaceId
      path: /v1/organizations/{organizationId}/workspaces/{workspaceId}
      operations:
      - name: getworkspace
        method: GET
        description: Get a workspace by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateworkspace
        method: PATCH
        description: Update a workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteworkspace
        method: DELETE
        description: Delete a workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CRIBL_API_KEY}}'
  exposes:
  - type: rest
    namespace: as-code-workspaces-rest
    port: 8080
    description: REST adapter for Cribl As Code API — Workspaces. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/organizations/{organizationid}/workspaces
      name: v1-organizations-organizationid-workspaces
      description: REST surface for v1-organizations-organizationId-workspaces.
      operations:
      - method: GET
        name: listworkspaces
        description: List all workspaces
        call: as-code-workspaces.listworkspaces
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createworkspace
        description: Create a workspace
        call: as-code-workspaces.createworkspace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/organizations/{organizationid}/workspaces/{workspaceid}
      name: v1-organizations-organizationid-workspaces-workspaceid
      description: REST surface for v1-organizations-organizationId-workspaces-workspaceId.
      operations:
      - method: GET
        name: getworkspace
        description: Get a workspace by ID
        call: as-code-workspaces.getworkspace
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateworkspace
        description: Update a workspace
        call: as-code-workspaces.updateworkspace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteworkspace
        description: Delete a workspace
        call: as-code-workspaces.deleteworkspace
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: as-code-workspaces-mcp
    port: 9090
    transport: http
    description: MCP adapter for Cribl As Code API — Workspaces. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-all-workspaces
      description: List all workspaces
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: as-code-workspaces.listworkspaces
      outputParameters:
      - type: object
        mapping: $.
    - name: create-workspace
      description: Create a workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: as-code-workspaces.createworkspace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-workspace-id
      description: Get a workspace by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: as-code-workspaces.getworkspace
      outputParameters:
      - type: object
        mapping: $.
    - name: update-workspace
      description: Update a workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: as-code-workspaces.updateworkspace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-workspace
      description: Delete a workspace
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: as-code-workspaces.deleteworkspace
      outputParameters:
      - type: object
        mapping: $.