Elastic.io · Capability

elastic.io Platform REST API — Auth Secrets

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

Run with Naftiko Elastic IoAuth Secrets

What You Can Do

GET
Listauthsecrets — Elastic.io List auth secrets
/v1/auth-secrets
POST
Createauthsecret — Elastic.io Create an auth secret
/v1/auth-secrets
GET
Getauthsecret — Elastic.io Get an auth secret
/v1/auth-secrets/{auth-secret-id}
PATCH
Updateauthsecret — Elastic.io Update an auth secret
/v1/auth-secrets/{auth-secret-id}
DELETE
Deleteauthsecret — Elastic.io Delete an auth secret
/v1/auth-secrets/{auth-secret-id}

MCP Tools

elastic-io-list-auth-secrets

Elastic.io List auth secrets

read-only idempotent
elastic-io-create-auth-secret

Elastic.io Create an auth secret

elastic-io-get-auth-secret

Elastic.io Get an auth secret

read-only idempotent
elastic-io-update-auth-secret

Elastic.io Update an auth secret

idempotent
elastic-io-delete-auth-secret

Elastic.io Delete an auth secret

idempotent

Capability Spec

platform-auth-secrets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: elastic.io Platform REST API — Auth Secrets
  description: 'elastic.io Platform REST API — Auth Secrets. 5 operations. Lead operation: Elastic.io List auth secrets. Self-contained
    Naftiko capability covering one Elastic Io business surface.'
  tags:
  - Elastic Io
  - Auth Secrets
  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-auth-secrets
    baseUri: https://api.elastic.io/v2
    description: elastic.io Platform REST API — Auth Secrets business capability. Self-contained, no shared references.
    resources:
    - name: auth-secrets
      path: /auth-secrets
      operations:
      - name: listauthsecrets
        method: GET
        description: Elastic.io List auth secrets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createauthsecret
        method: POST
        description: Elastic.io Create an auth secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: auth-secrets-auth_secret_id
      path: /auth-secrets/{auth_secret_id}
      operations:
      - name: getauthsecret
        method: GET
        description: Elastic.io Get an auth secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: auth_secret_id
          in: path
          type: string
          required: true
      - name: updateauthsecret
        method: PATCH
        description: Elastic.io Update an auth secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: auth_secret_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteauthsecret
        method: DELETE
        description: Elastic.io Delete an auth secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: auth_secret_id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.ELASTIC_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-auth-secrets-rest
    port: 8080
    description: REST adapter for elastic.io Platform REST API — Auth Secrets. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/auth-secrets
      name: auth-secrets
      description: REST surface for auth-secrets.
      operations:
      - method: GET
        name: listauthsecrets
        description: Elastic.io List auth secrets
        call: platform-auth-secrets.listauthsecrets
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createauthsecret
        description: Elastic.io Create an auth secret
        call: platform-auth-secrets.createauthsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/auth-secrets/{auth-secret-id}
      name: auth-secrets-auth-secret-id
      description: REST surface for auth-secrets-auth_secret_id.
      operations:
      - method: GET
        name: getauthsecret
        description: Elastic.io Get an auth secret
        call: platform-auth-secrets.getauthsecret
        with:
          auth_secret_id: rest.auth_secret_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateauthsecret
        description: Elastic.io Update an auth secret
        call: platform-auth-secrets.updateauthsecret
        with:
          auth_secret_id: rest.auth_secret_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteauthsecret
        description: Elastic.io Delete an auth secret
        call: platform-auth-secrets.deleteauthsecret
        with:
          auth_secret_id: rest.auth_secret_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-auth-secrets-mcp
    port: 9090
    transport: http
    description: MCP adapter for elastic.io Platform REST API — Auth Secrets. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: elastic-io-list-auth-secrets
      description: Elastic.io List auth secrets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-auth-secrets.listauthsecrets
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-create-auth-secret
      description: Elastic.io Create an auth secret
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-auth-secrets.createauthsecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-get-auth-secret
      description: Elastic.io Get an auth secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-auth-secrets.getauthsecret
      with:
        auth_secret_id: tools.auth_secret_id
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-update-auth-secret
      description: Elastic.io Update an auth secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: platform-auth-secrets.updateauthsecret
      with:
        auth_secret_id: tools.auth_secret_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: elastic-io-delete-auth-secret
      description: Elastic.io Delete an auth secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: platform-auth-secrets.deleteauthsecret
      with:
        auth_secret_id: tools.auth_secret_id
      outputParameters:
      - type: object
        mapping: $.