DatoCMS · Capability

DatoCMS Content Management API — Uploads

DatoCMS Content Management API — Uploads. 2 operations. Lead operation: List uploads. Self-contained Naftiko capability covering one Datocms business surface.

Run with Naftiko DatocmsUploads

What You Can Do

GET
Listuploads — List uploads
/v1/uploads
POST
Createupload — Create an upload
/v1/uploads

MCP Tools

list-uploads

List uploads

read-only idempotent
create-upload

Create an upload

Capability Spec

content-management-uploads.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DatoCMS Content Management API — Uploads
  description: 'DatoCMS Content Management API — Uploads. 2 operations. Lead operation: List uploads. Self-contained Naftiko
    capability covering one Datocms business surface.'
  tags:
  - Datocms
  - Uploads
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATOCMS_API_KEY: DATOCMS_API_KEY
capability:
  consumes:
  - type: http
    namespace: content-management-uploads
    baseUri: https://site-api.datocms.com
    description: DatoCMS Content Management API — Uploads business capability. Self-contained, no shared references.
    resources:
    - name: uploads
      path: /uploads
      operations:
      - name: listuploads
        method: GET
        description: List uploads
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createupload
        method: POST
        description: Create an upload
        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.DATOCMS_API_KEY}}'
  exposes:
  - type: rest
    namespace: content-management-uploads-rest
    port: 8080
    description: REST adapter for DatoCMS Content Management API — Uploads. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/uploads
      name: uploads
      description: REST surface for uploads.
      operations:
      - method: GET
        name: listuploads
        description: List uploads
        call: content-management-uploads.listuploads
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createupload
        description: Create an upload
        call: content-management-uploads.createupload
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: content-management-uploads-mcp
    port: 9090
    transport: http
    description: MCP adapter for DatoCMS Content Management API — Uploads. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-uploads
      description: List uploads
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: content-management-uploads.listuploads
      outputParameters:
      - type: object
        mapping: $.
    - name: create-upload
      description: Create an upload
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: content-management-uploads.createupload
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.