Apigee · Capability

Apigee Registry API — API Specs

Apigee Registry API — API Specs. 7 operations. Lead operation: Apigee List API Specs. Self-contained Naftiko capability covering one Apigee business surface.

Run with Naftiko ApigeeAPI Specs

What You Can Do

GET
Listapispecs — Apigee List API Specs
/v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs
POST
Createapispec — Apigee Create an API Spec
/v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs
GET
Getapispec — Apigee Get an API Spec
/v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/{specid}
PATCH
Updateapispec — Apigee Update an API Spec
/v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/{specid}
DELETE
Deleteapispec — Apigee Delete an API Spec
/v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/{specid}
GET
Getapispeccontents — Apigee Get API Spec Contents
/v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/specid-getcontents
POST
Rollbackapispec — Apigee Rollback an API Spec
/v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/specid-rollback

MCP Tools

apigee-list-api-specs

Apigee List API Specs

read-only idempotent
apigee-create-api-spec

Apigee Create an API Spec

apigee-get-api-spec

Apigee Get an API Spec

read-only idempotent
apigee-update-api-spec

Apigee Update an API Spec

idempotent
apigee-delete-api-spec

Apigee Delete an API Spec

idempotent
apigee-get-api-spec-contents

Apigee Get API Spec Contents

read-only idempotent
apigee-rollback-api-spec

Apigee Rollback an API Spec

Capability Spec

registry-api-specs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apigee Registry API — API Specs
  description: 'Apigee Registry API — API Specs. 7 operations. Lead operation: Apigee List API Specs. Self-contained Naftiko
    capability covering one Apigee business surface.'
  tags:
  - Apigee
  - API Specs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APIGEE_API_KEY: APIGEE_API_KEY
capability:
  consumes:
  - type: http
    namespace: registry-api-specs
    baseUri: https://apigeeregistry.googleapis.com/v1
    description: Apigee Registry API — API Specs business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs
      path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs
      operations:
      - name: listapispecs
        method: GET
        description: Apigee List API Specs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filter expression.
        - name: orderBy
          in: query
          type: string
          description: Field to order results by.
      - name: createapispec
        method: POST
        description: Apigee Create an API Spec
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: apiSpecId
          in: query
          type: string
          description: Required. The ID to use for the spec.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec
      path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs/{specId}
      operations:
      - name: getapispec
        method: GET
        description: Apigee Get an API Spec
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateapispec
        method: PATCH
        description: Apigee Update an API Spec
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: updateMask
          in: query
          type: string
          description: Required. Comma-separated list of fields to update.
          required: true
        - name: allowMissing
          in: query
          type: boolean
          description: If true, create if it does not exist.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteapispec
        method: DELETE
        description: Apigee Delete an API Spec
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: force
          in: query
          type: boolean
          description: If true, delete child resources as well.
    - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec
      path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs/{specId}:getContents
      operations:
      - name: getapispeccontents
        method: GET
        description: Apigee Get API Spec Contents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec
      path: /projects/{projectId}/locations/{locationId}/apis/{apiId}/versions/{versionId}/specs/{specId}:rollback
      operations:
      - name: rollbackapispec
        method: POST
        description: Apigee Rollback an API Spec
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.APIGEE_API_KEY}}'
  exposes:
  - type: rest
    namespace: registry-api-specs-rest
    port: 8080
    description: REST adapter for Apigee Registry API — API Specs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs
      name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs
      description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs.
      operations:
      - method: GET
        name: listapispecs
        description: Apigee List API Specs
        call: registry-api-specs.listapispecs
        with:
          filter: rest.filter
          orderBy: rest.orderBy
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapispec
        description: Apigee Create an API Spec
        call: registry-api-specs.createapispec
        with:
          apiSpecId: rest.apiSpecId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/{specid}
      name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs-spec
      description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec.
      operations:
      - method: GET
        name: getapispec
        description: Apigee Get an API Spec
        call: registry-api-specs.getapispec
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateapispec
        description: Apigee Update an API Spec
        call: registry-api-specs.updateapispec
        with:
          updateMask: rest.updateMask
          allowMissing: rest.allowMissing
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapispec
        description: Apigee Delete an API Spec
        call: registry-api-specs.deleteapispec
        with:
          force: rest.force
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/specid-getcontents
      name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs-spec
      description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec.
      operations:
      - method: GET
        name: getapispeccontents
        description: Apigee Get API Spec Contents
        call: registry-api-specs.getapispeccontents
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/locations/{locationid}/apis/{apiid}/versions/{versionid}/specs/specid-rollback
      name: projects-projectid-locations-locationid-apis-apiid-versions-versionid-specs-spec
      description: REST surface for projects-projectId-locations-locationId-apis-apiId-versions-versionId-specs-spec.
      operations:
      - method: POST
        name: rollbackapispec
        description: Apigee Rollback an API Spec
        call: registry-api-specs.rollbackapispec
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: registry-api-specs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apigee Registry API — API Specs. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: apigee-list-api-specs
      description: Apigee List API Specs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: registry-api-specs.listapispecs
      with:
        filter: tools.filter
        orderBy: tools.orderBy
      outputParameters:
      - type: object
        mapping: $.
    - name: apigee-create-api-spec
      description: Apigee Create an API Spec
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: registry-api-specs.createapispec
      with:
        apiSpecId: tools.apiSpecId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apigee-get-api-spec
      description: Apigee Get an API Spec
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: registry-api-specs.getapispec
      outputParameters:
      - type: object
        mapping: $.
    - name: apigee-update-api-spec
      description: Apigee Update an API Spec
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: registry-api-specs.updateapispec
      with:
        updateMask: tools.updateMask
        allowMissing: tools.allowMissing
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apigee-delete-api-spec
      description: Apigee Delete an API Spec
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: registry-api-specs.deleteapispec
      with:
        force: tools.force
      outputParameters:
      - type: object
        mapping: $.
    - name: apigee-get-api-spec-contents
      description: Apigee Get API Spec Contents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: registry-api-specs.getapispeccontents
      outputParameters:
      - type: object
        mapping: $.
    - name: apigee-rollback-api-spec
      description: Apigee Rollback an API Spec
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: registry-api-specs.rollbackapispec
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.