Close · Capability

API Endpoints — subpackage_files

API Endpoints — subpackage_files. 1 operations. Lead operation: Generate a signed S3 POST. Self-contained Naftiko capability covering one Close business surface.

Run with Naftiko Closesubpackage_files

What You Can Do

POST
Create — Generate a signed S3 POST
/v1/files/upload

MCP Tools

generate-signed-s3-post

Generate a signed S3 POST

Capability Spec

close-subpackage-files.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_files
  description: 'API Endpoints — subpackage_files. 1 operations. Lead operation: Generate a signed S3 POST. Self-contained
    Naftiko capability covering one Close business surface.'
  tags:
  - Close
  - subpackage_files
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOSE_API_KEY: CLOSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: close-subpackage-files
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_files business capability. Self-contained, no shared references.
    resources:
    - name: files-upload
      path: /files/upload/
      operations:
      - name: create
        method: POST
        description: Generate a signed S3 POST
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.CLOSE_API_KEY}}'
  exposes:
  - type: rest
    namespace: close-subpackage-files-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_files. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/files/upload
      name: files-upload
      description: REST surface for files-upload.
      operations:
      - method: POST
        name: create
        description: Generate a signed S3 POST
        call: close-subpackage-files.create
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-files-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_files. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: generate-signed-s3-post
      description: Generate a signed S3 POST
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-files.create
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.