contentstack · Capability

Contentstack Content Management API — Content Types

Contentstack Content Management API — Content Types. 5 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
POST
Createcontenttype — Create a content type
/v1/content-types
GET
Getcontenttype — Get a content type
/v1/content-types/{content-type-uid}
PUT
Updatecontenttype — Update a content type
/v1/content-types/{content-type-uid}
DELETE
Deletecontenttype — Delete a content type
/v1/content-types/{content-type-uid}

MCP Tools

get-all-content-types

Get all content types

read-only idempotent
create-content-type

Create a content type

get-content-type

Get a content type

read-only idempotent
update-content-type

Update a content type

idempotent
delete-content-type

Delete a content type

idempotent

Capability Spec

content-management-content-types.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Contentstack Content Management API — Content Types
  description: 'Contentstack Content Management API — Content Types. 5 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-management-content-types
    baseUri: https://api.contentstack.io/v3
    description: Contentstack Content Management 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: $.
      - name: createcontenttype
        method: POST
        description: Create a content type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: content_types-content_type_uid
      path: /content_types/{content_type_uid}
      operations:
      - name: getcontenttype
        method: GET
        description: Get a content type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecontenttype
        method: PUT
        description: Update a content type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecontenttype
        method: DELETE
        description: Delete a content type
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: authtoken
      value: '{{env.CONTENTSTACK_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: content-management-content-types-rest
    port: 8080
    description: REST adapter for Contentstack Content Management 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-management-content-types.getallcontenttypes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcontenttype
        description: Create a content type
        call: content-management-content-types.createcontenttype
        with:
          body: rest.body
        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: getcontenttype
        description: Get a content type
        call: content-management-content-types.getcontenttype
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecontenttype
        description: Update a content type
        call: content-management-content-types.updatecontenttype
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecontenttype
        description: Delete a content type
        call: content-management-content-types.deletecontenttype
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: content-management-content-types-mcp
    port: 9090
    transport: http
    description: MCP adapter for Contentstack Content Management 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-management-content-types.getallcontenttypes
      outputParameters:
      - type: object
        mapping: $.
    - name: create-content-type
      description: Create a content type
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: content-management-content-types.createcontenttype
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-content-type
      description: Get a content type
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: content-management-content-types.getcontenttype
      outputParameters:
      - type: object
        mapping: $.
    - name: update-content-type
      description: Update a content type
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: content-management-content-types.updatecontenttype
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-content-type
      description: Delete a content type
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: content-management-content-types.deletecontenttype
      outputParameters:
      - type: object
        mapping: $.