contentstack · Capability

Contentstack Content Delivery API — Content Types

Contentstack Content Delivery API — Content Types. 2 operations. Lead operation: Get all content types. Self-contained Naftiko capability covering one Contentstack business surface.

Run with Naftiko ContentstackContent Types

What You Can Do

GET
Getallcontenttypes — Get all content types
/v1/content-types
GET
Getsinglecontenttype — Get a single content type
/v1/content-types/{content-type-uid}

MCP Tools

get-all-content-types

Get all content types

read-only idempotent
get-single-content-type

Get a single content type

read-only idempotent

Capability Spec

content-delivery-content-types.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Contentstack Content Delivery API — Content Types
  description: 'Contentstack Content Delivery API — Content Types. 2 operations. Lead operation: Get all content types. Self-contained
    Naftiko capability covering one Contentstack business surface.'
  tags:
  - Contentstack
  - Content Types
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CONTENTSTACK_API_KEY: CONTENTSTACK_API_KEY
capability:
  consumes:
  - type: http
    namespace: content-delivery-content-types
    baseUri: https://cdn.contentstack.io/v3
    description: Contentstack Content Delivery API — Content Types business capability. Self-contained, no shared references.
    resources:
    - name: content_types
      path: /content_types
      operations:
      - name: getallcontenttypes
        method: GET
        description: Get all content types
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: include_count
          in: query
          type: boolean
          description: Set to true to include the total count of content types in the response.
    - name: content_types-content_type_uid
      path: /content_types/{content_type_uid}
      operations:
      - name: getsinglecontenttype
        method: GET
        description: Get a single content type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: version
          in: query
          type: integer
          description: Retrieve a specific version of the content type schema.
    authentication:
      type: apikey
      key: api_key
      value: '{{env.CONTENTSTACK_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: content-delivery-content-types-rest
    port: 8080
    description: REST adapter for Contentstack Content Delivery API — Content Types. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/content-types
      name: content-types
      description: REST surface for content_types.
      operations:
      - method: GET
        name: getallcontenttypes
        description: Get all content types
        call: content-delivery-content-types.getallcontenttypes
        with:
          include_count: rest.include_count
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/content-types/{content-type-uid}
      name: content-types-content-type-uid
      description: REST surface for content_types-content_type_uid.
      operations:
      - method: GET
        name: getsinglecontenttype
        description: Get a single content type
        call: content-delivery-content-types.getsinglecontenttype
        with:
          version: rest.version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: content-delivery-content-types-mcp
    port: 9090
    transport: http
    description: MCP adapter for Contentstack Content Delivery API — Content Types. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-all-content-types
      description: Get all content types
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: content-delivery-content-types.getallcontenttypes
      with:
        include_count: tools.include_count
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-content-type
      description: Get a single content type
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: content-delivery-content-types.getsinglecontenttype
      with:
        version: tools.version
      outputParameters:
      - type: object
        mapping: $.