APIs.io Engineering Platform Cloudflare API — Magic Sites

APIs.io Engineering Platform Cloudflare API — Magic Sites. 6 operations. Lead operation: APIs.io Engineering Platform List Sites. Self-contained Naftiko capability covering one Engineering Platform business surface.

Run with Naftiko Engineering PlatformMagic Sites

What You Can Do

GET
Magicsiteslistsites — APIs.io Engineering Platform List Sites
/v1/accounts/{account-id}/magic/sites
POST
Magicsitescreatesite — APIs.io Engineering Platform Create a new Site
/v1/accounts/{account-id}/magic/sites
DELETE
Magicsitesdeletesite — APIs.io Engineering Platform Delete Site
/v1/accounts/{account-id}/magic/sites/{site-id}
GET
Magicsitessitedetails — APIs.io Engineering Platform Site Details
/v1/accounts/{account-id}/magic/sites/{site-id}
PATCH
Magicsitespatchsite — APIs.io Engineering Platform Patch Site
/v1/accounts/{account-id}/magic/sites/{site-id}
PUT
Magicsitesupdatesite — APIs.io Engineering Platform Update Site
/v1/accounts/{account-id}/magic/sites/{site-id}

MCP Tools

apis-io-engineering-platform-list-sites

APIs.io Engineering Platform List Sites

read-only idempotent
apis-io-engineering-platform-create-new

APIs.io Engineering Platform Create a new Site

apis-io-engineering-platform-delete-site

APIs.io Engineering Platform Delete Site

idempotent
apis-io-engineering-platform-site-details

APIs.io Engineering Platform Site Details

read-only idempotent
apis-io-engineering-platform-patch-site

APIs.io Engineering Platform Patch Site

idempotent
apis-io-engineering-platform-update-site

APIs.io Engineering Platform Update Site

idempotent

Capability Spec

cloudflare-magic-sites.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: APIs.io Engineering Platform Cloudflare API — Magic Sites
  description: 'APIs.io Engineering Platform Cloudflare API — Magic Sites. 6 operations. Lead operation: APIs.io Engineering
    Platform List Sites. Self-contained Naftiko capability covering one Engineering Platform business surface.'
  tags:
  - Engineering Platform
  - Magic Sites
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENGINEERING_PLATFORM_API_KEY: ENGINEERING_PLATFORM_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudflare-magic-sites
    baseUri: ''
    description: APIs.io Engineering Platform Cloudflare API — Magic Sites business capability. Self-contained, no shared
      references.
    resources:
    - name: accounts-account_id-magic-sites
      path: /accounts/{account_id}/magic/sites
      operations:
      - name: magicsiteslistsites
        method: GET
        description: APIs.io Engineering Platform List Sites
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: connector_identifier
          in: query
          type: string
      - name: magicsitescreatesite
        method: POST
        description: APIs.io Engineering Platform Create a new Site
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-magic-sites-site_id
      path: /accounts/{account_id}/magic/sites/{site_id}
      operations:
      - name: magicsitesdeletesite
        method: DELETE
        description: APIs.io Engineering Platform Delete Site
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: magicsitessitedetails
        method: GET
        description: APIs.io Engineering Platform Site Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
      - name: magicsitespatchsite
        method: PATCH
        description: APIs.io Engineering Platform Patch Site
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: magicsitesupdatesite
        method: PUT
        description: APIs.io Engineering Platform Update Site
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ENGINEERING_PLATFORM_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloudflare-magic-sites-rest
    port: 8080
    description: REST adapter for APIs.io Engineering Platform Cloudflare API — Magic Sites. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-id}/magic/sites
      name: accounts-account-id-magic-sites
      description: REST surface for accounts-account_id-magic-sites.
      operations:
      - method: GET
        name: magicsiteslistsites
        description: APIs.io Engineering Platform List Sites
        call: cloudflare-magic-sites.magicsiteslistsites
        with:
          account_id: rest.account_id
          connector_identifier: rest.connector_identifier
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: magicsitescreatesite
        description: APIs.io Engineering Platform Create a new Site
        call: cloudflare-magic-sites.magicsitescreatesite
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/magic/sites/{site-id}
      name: accounts-account-id-magic-sites-site-id
      description: REST surface for accounts-account_id-magic-sites-site_id.
      operations:
      - method: DELETE
        name: magicsitesdeletesite
        description: APIs.io Engineering Platform Delete Site
        call: cloudflare-magic-sites.magicsitesdeletesite
        with:
          site_id: rest.site_id
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: magicsitessitedetails
        description: APIs.io Engineering Platform Site Details
        call: cloudflare-magic-sites.magicsitessitedetails
        with:
          site_id: rest.site_id
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: magicsitespatchsite
        description: APIs.io Engineering Platform Patch Site
        call: cloudflare-magic-sites.magicsitespatchsite
        with:
          site_id: rest.site_id
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: magicsitesupdatesite
        description: APIs.io Engineering Platform Update Site
        call: cloudflare-magic-sites.magicsitesupdatesite
        with:
          site_id: rest.site_id
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudflare-magic-sites-mcp
    port: 9090
    transport: http
    description: MCP adapter for APIs.io Engineering Platform Cloudflare API — Magic Sites. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: apis-io-engineering-platform-list-sites
      description: APIs.io Engineering Platform List Sites
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-magic-sites.magicsiteslistsites
      with:
        account_id: tools.account_id
        connector_identifier: tools.connector_identifier
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-create-new
      description: APIs.io Engineering Platform Create a new Site
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloudflare-magic-sites.magicsitescreatesite
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-delete-site
      description: APIs.io Engineering Platform Delete Site
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cloudflare-magic-sites.magicsitesdeletesite
      with:
        site_id: tools.site_id
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-site-details
      description: APIs.io Engineering Platform Site Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-magic-sites.magicsitessitedetails
      with:
        site_id: tools.site_id
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-patch-site
      description: APIs.io Engineering Platform Patch Site
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-magic-sites.magicsitespatchsite
      with:
        site_id: tools.site_id
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-update-site
      description: APIs.io Engineering Platform Update Site
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-magic-sites.magicsitesupdatesite
      with:
        site_id: tools.site_id
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.