WSO2 · Capability

WSO2 API Manager - Developer Portal — Application Secrets

WSO2 API Manager - Developer Portal — Application Secrets. 3 operations. Lead operation: Generate a New Consumer Secret. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Application Secrets

What You Can Do

POST
Generateconsumersecret — Generate a New Consumer Secret
/v1/applications/{applicationid}/oauth-keys/{keymappingid}/generate-secret
POST
Revokeconsumersecret — Revoke a Consumer Secret
/v1/applications/{applicationid}/oauth-keys/{keymappingid}/revoke-secret
GET
Getconsumersecrets — Retrieve Consumer Secrets
/v1/applications/{applicationid}/oauth-keys/{keymappingid}/secrets

MCP Tools

generate-new-consumer-secret

Generate a New Consumer Secret

revoke-consumer-secret

Revoke a Consumer Secret

retrieve-consumer-secrets

Retrieve Consumer Secrets

read-only idempotent

Capability Spec

devportal-application-secrets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Developer Portal — Application Secrets
  description: 'WSO2 API Manager - Developer Portal — Application Secrets. 3 operations. Lead operation: Generate a New Consumer
    Secret. Self-contained Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Application Secrets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: devportal-application-secrets
    baseUri: https://apis.wso2.com/api/am/devportal/v3
    description: WSO2 API Manager - Developer Portal — Application Secrets business capability. Self-contained, no shared
      references.
    resources:
    - name: applications-applicationId-oauth-keys-keyMappingId-generate-secret
      path: /applications/{applicationId}/oauth-keys/{keyMappingId}/generate-secret
      operations:
      - name: generateconsumersecret
        method: POST
        description: Generate a New Consumer Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: applications-applicationId-oauth-keys-keyMappingId-revoke-secret
      path: /applications/{applicationId}/oauth-keys/{keyMappingId}/revoke-secret
      operations:
      - name: revokeconsumersecret
        method: POST
        description: Revoke a Consumer Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: applications-applicationId-oauth-keys-keyMappingId-secrets
      path: /applications/{applicationId}/oauth-keys/{keyMappingId}/secrets
      operations:
      - name: getconsumersecrets
        method: GET
        description: Retrieve Consumer Secrets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: devportal-application-secrets-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Developer Portal — Application Secrets. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/applications/{applicationid}/oauth-keys/{keymappingid}/generate-secret
      name: applications-applicationid-oauth-keys-keymappingid-generate-secret
      description: REST surface for applications-applicationId-oauth-keys-keyMappingId-generate-secret.
      operations:
      - method: POST
        name: generateconsumersecret
        description: Generate a New Consumer Secret
        call: devportal-application-secrets.generateconsumersecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/applications/{applicationid}/oauth-keys/{keymappingid}/revoke-secret
      name: applications-applicationid-oauth-keys-keymappingid-revoke-secret
      description: REST surface for applications-applicationId-oauth-keys-keyMappingId-revoke-secret.
      operations:
      - method: POST
        name: revokeconsumersecret
        description: Revoke a Consumer Secret
        call: devportal-application-secrets.revokeconsumersecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/applications/{applicationid}/oauth-keys/{keymappingid}/secrets
      name: applications-applicationid-oauth-keys-keymappingid-secrets
      description: REST surface for applications-applicationId-oauth-keys-keyMappingId-secrets.
      operations:
      - method: GET
        name: getconsumersecrets
        description: Retrieve Consumer Secrets
        call: devportal-application-secrets.getconsumersecrets
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: devportal-application-secrets-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Developer Portal — Application Secrets. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: generate-new-consumer-secret
      description: Generate a New Consumer Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: devportal-application-secrets.generateconsumersecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: revoke-consumer-secret
      description: Revoke a Consumer Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: devportal-application-secrets.revokeconsumersecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-consumer-secrets
      description: Retrieve Consumer Secrets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: devportal-application-secrets.getconsumersecrets
      outputParameters:
      - type: object
        mapping: $.