Elastic.io · Capability

elastic.io Platform REST API — Credentials

elastic.io Platform REST API — Credentials. 5 operations. Lead operation: Elastic.io List credentials. Self-contained Naftiko capability covering one Elastic Io business surface.

Run with Naftiko Elastic IoCredentials

What You Can Do

GET
Listcredentials — Elastic.io List credentials
/v1/credentials
POST
Createcredential — Elastic.io Create a credential
/v1/credentials
GET
Getcredential — Elastic.io Get a credential
/v1/credentials/{credential-id}
PATCH
Updatecredential — Elastic.io Update a credential
/v1/credentials/{credential-id}
DELETE
Deletecredential — Elastic.io Delete a credential
/v1/credentials/{credential-id}

MCP Tools

elastic-io-list-credentials

Elastic.io List credentials

read-only idempotent
elastic-io-create-credential

Elastic.io Create a credential

elastic-io-get-credential

Elastic.io Get a credential

read-only idempotent
elastic-io-update-credential

Elastic.io Update a credential

idempotent
elastic-io-delete-credential

Elastic.io Delete a credential

idempotent

Capability Spec

platform-credentials.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: elastic.io Platform REST API — Credentials
  description: 'elastic.io Platform REST API — Credentials. 5 operations. Lead operation: Elastic.io List credentials. Self-contained
    Naftiko capability covering one Elastic Io business surface.'
  tags:
  - Elastic Io
  - Credentials
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ELASTIC_IO_API_KEY: ELASTIC_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-credentials
    baseUri: https://api.elastic.io/v2
    description: elastic.io Platform REST API — Credentials business capability. Self-contained, no shared references.
    resources:
    - name: credentials
      path: /credentials
      operations:
      - name: listcredentials
        method: GET
        description: Elastic.io List credentials
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcredential
        method: POST
        description: Elastic.io Create a credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: credentials-credential_id
      path: /credentials/{credential_id}
      operations:
      - name: getcredential
        method: GET
        description: Elastic.io Get a credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecredential
        method: PATCH
        description: Elastic.io Update a credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecredential
        method: DELETE
        description: Elastic.io Delete a credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ELASTIC_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-credentials-rest
    port: 8080
    description: REST adapter for elastic.io Platform REST API — Credentials. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/credentials
      name: credentials
      description: REST surface for credentials.
      operations:
      - method: GET
        name: listcredentials
        description: Elastic.io List credentials
        call: platform-credentials.listcredentials
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcredential
        description: Elastic.io Create a credential
        call: platform-credentials.createcredential
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/credentials/{credential-id}
      name: credentials-credential-id
      description: REST surface for credentials-credential_id.
      operations:
      - method: GET
        name: getcredential
        description: Elastic.io Get a credential
        call: platform-credentials.getcredential
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecredential
        description: Elastic.io Update a credential
        call: platform-credentials.updatecredential
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecredential
        description: Elastic.io Delete a credential
        call: platform-credentials.deletecredential
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-credentials-mcp
    port: 9090
    transport: http
    description: MCP adapter for elastic.io Platform REST API — Credentials. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: elastic-io-list-credentials
      description: Elastic.io List credentials
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-credentials.listcredentials
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-create-credential
      description: Elastic.io Create a credential
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-credentials.createcredential
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-get-credential
      description: Elastic.io Get a credential
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-credentials.getcredential
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-update-credential
      description: Elastic.io Update a credential
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: platform-credentials.updatecredential
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-delete-credential
      description: Elastic.io Delete a credential
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: platform-credentials.deletecredential
      outputParameters:
      - type: object
        mapping: $.