Cribl · Capability

Cribl As Code API — API Credentials

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

Run with Naftiko CriblAPI Credentials

What You Can Do

GET
Listapicredentials — List API credentials
/v1/v1/organizations/{organizationid}/api-credentials
POST
Createapicredential — Create an API credential
/v1/v1/organizations/{organizationid}/api-credentials
GET
Getapicredential — Get an API credential by ID
/v1/v1/organizations/{organizationid}/api-credentials/{credentialid}
PATCH
Updateapicredential — Update an API credential
/v1/v1/organizations/{organizationid}/api-credentials/{credentialid}
DELETE
Deleteapicredential — Delete an API credential
/v1/v1/organizations/{organizationid}/api-credentials/{credentialid}

MCP Tools

list-api-credentials

List API credentials

read-only idempotent
create-api-credential

Create an API credential

get-api-credential-id

Get an API credential by ID

read-only idempotent
update-api-credential

Update an API credential

idempotent
delete-api-credential

Delete an API credential

idempotent

Capability Spec

as-code-api-credentials.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Cribl As Code API — API Credentials
  description: 'Cribl As Code API — API Credentials. 5 operations. Lead operation: List API credentials. Self-contained Naftiko
    capability covering one Cribl business surface.'
  tags:
  - Cribl
  - API Credentials
  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-api-credentials
    baseUri: https://gateway.cribl.cloud
    description: Cribl As Code API — API Credentials business capability. Self-contained, no shared references.
    resources:
    - name: v1-organizations-organizationId-api-credentials
      path: /v1/organizations/{organizationId}/api-credentials
      operations:
      - name: listapicredentials
        method: GET
        description: List API credentials
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createapicredential
        method: POST
        description: Create an API credential
        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-api-credentials-credentialId
      path: /v1/organizations/{organizationId}/api-credentials/{credentialId}
      operations:
      - name: getapicredential
        method: GET
        description: Get an API credential by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateapicredential
        method: PATCH
        description: Update an API credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteapicredential
        method: DELETE
        description: Delete an API credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CRIBL_API_KEY}}'
  exposes:
  - type: rest
    namespace: as-code-api-credentials-rest
    port: 8080
    description: REST adapter for Cribl As Code API — API Credentials. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/organizations/{organizationid}/api-credentials
      name: v1-organizations-organizationid-api-credentials
      description: REST surface for v1-organizations-organizationId-api-credentials.
      operations:
      - method: GET
        name: listapicredentials
        description: List API credentials
        call: as-code-api-credentials.listapicredentials
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapicredential
        description: Create an API credential
        call: as-code-api-credentials.createapicredential
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/organizations/{organizationid}/api-credentials/{credentialid}
      name: v1-organizations-organizationid-api-credentials-credentialid
      description: REST surface for v1-organizations-organizationId-api-credentials-credentialId.
      operations:
      - method: GET
        name: getapicredential
        description: Get an API credential by ID
        call: as-code-api-credentials.getapicredential
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateapicredential
        description: Update an API credential
        call: as-code-api-credentials.updateapicredential
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapicredential
        description: Delete an API credential
        call: as-code-api-credentials.deleteapicredential
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: as-code-api-credentials-mcp
    port: 9090
    transport: http
    description: MCP adapter for Cribl As Code API — API Credentials. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-api-credentials
      description: List API credentials
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: as-code-api-credentials.listapicredentials
      outputParameters:
      - type: object
        mapping: $.
    - name: create-api-credential
      description: Create an API credential
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: as-code-api-credentials.createapicredential
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-api-credential-id
      description: Get an API credential by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: as-code-api-credentials.getapicredential
      outputParameters:
      - type: object
        mapping: $.
    - name: update-api-credential
      description: Update an API credential
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: as-code-api-credentials.updateapicredential
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-api-credential
      description: Delete an API credential
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: as-code-api-credentials.deleteapicredential
      outputParameters:
      - type: object
        mapping: $.