Close · Capability

API Endpoints — subpackage_customFieldsActivity

API Endpoints — subpackage_customFieldsActivity. 5 operations. Lead operation: List Activity Custom Fields. Self-contained Naftiko capability covering one Close business surface.

Run with Naftiko Closesubpackage_customFieldsActivity

What You Can Do

GET
List — List Activity Custom Fields
/v1/custom-field/activity
POST
Create — Create a new Activity Custom Field
/v1/custom-field/activity
GET
Get — Fetch Activity Custom Field's details
/v1/custom-field/activity/{id}
PUT
Update — Update an Activity Custom Field
/v1/custom-field/activity/{id}
DELETE
Delete — Delete an Activity Custom Field
/v1/custom-field/activity/{id}

MCP Tools

list-activity-custom-fields

List Activity Custom Fields

read-only idempotent
create-new-activity-custom-field

Create a new Activity Custom Field

fetch-activity-custom-field-s-details

Fetch Activity Custom Field's details

read-only idempotent
update-activity-custom-field

Update an Activity Custom Field

idempotent
delete-activity-custom-field

Delete an Activity Custom Field

idempotent

Capability Spec

close-subpackage-customfieldsactivity.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_customFieldsActivity
  description: 'API Endpoints — subpackage_customFieldsActivity. 5 operations. Lead operation: List Activity Custom Fields.
    Self-contained Naftiko capability covering one Close business surface.'
  tags:
  - Close
  - subpackage_customFieldsActivity
  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-customfieldsactivity
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_customFieldsActivity business capability. Self-contained, no shared references.
    resources:
    - name: custom_field-activity
      path: /custom_field/activity/
      operations:
      - name: list
        method: GET
        description: List Activity Custom Fields
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _limit
          in: query
          type: integer
          description: Number of results to return.
        - name: _skip
          in: query
          type: integer
          description: Number of results to skip before returning, for pagination.
        - name: _fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response.
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
      - name: create
        method: POST
        description: Create a new Activity Custom Field
        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
    - name: custom_field-activity-id
      path: /custom_field/activity/{id}/
      operations:
      - name: get
        method: GET
        description: Fetch Activity Custom Field's details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: _fields
          in: query
          type: string
          description: Comma-separated list of fields to include in the response.
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
      - name: update
        method: PUT
        description: Update an Activity Custom Field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - 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
      - name: delete
        method: DELETE
        description: Delete an Activity Custom Field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
    authentication:
      type: bearer
      token: '{{env.CLOSE_API_KEY}}'
  exposes:
  - type: rest
    namespace: close-subpackage-customfieldsactivity-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_customFieldsActivity. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/custom-field/activity
      name: custom-field-activity
      description: REST surface for custom_field-activity.
      operations:
      - method: GET
        name: list
        description: List Activity Custom Fields
        call: close-subpackage-customfieldsactivity.list
        with:
          _limit: rest._limit
          _skip: rest._skip
          _fields: rest._fields
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create
        description: Create a new Activity Custom Field
        call: close-subpackage-customfieldsactivity.create
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/custom-field/activity/{id}
      name: custom-field-activity-id
      description: REST surface for custom_field-activity-id.
      operations:
      - method: GET
        name: get
        description: Fetch Activity Custom Field's details
        call: close-subpackage-customfieldsactivity.get
        with:
          id: rest.id
          _fields: rest._fields
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: update
        description: Update an Activity Custom Field
        call: close-subpackage-customfieldsactivity.update
        with:
          id: rest.id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete an Activity Custom Field
        call: close-subpackage-customfieldsactivity.delete
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-customfieldsactivity-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_customFieldsActivity. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-activity-custom-fields
      description: List Activity Custom Fields
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-customfieldsactivity.list
      with:
        _limit: tools._limit
        _skip: tools._skip
        _fields: tools._fields
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-activity-custom-field
      description: Create a new Activity Custom Field
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-customfieldsactivity.create
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fetch-activity-custom-field-s-details
      description: Fetch Activity Custom Field's details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-customfieldsactivity.get
      with:
        id: tools.id
        _fields: tools._fields
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-activity-custom-field
      description: Update an Activity Custom Field
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: close-subpackage-customfieldsactivity.update
      with:
        id: tools.id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-activity-custom-field
      description: Delete an Activity Custom Field
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: close-subpackage-customfieldsactivity.delete
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.