Close · Capability

API Endpoints — subpackage_customActivityTypes

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

Run with Naftiko Closesubpackage_customActivityTypes

What You Can Do

GET
List — List Custom Activity Types
/v1/custom-activity
POST
Create — Create new Custom Activity Type
/v1/custom-activity
GET
Get — Retrieve a single Custom Activity Type
/v1/custom-activity/{id}
PUT
Update — Update existing Custom Activity Type
/v1/custom-activity/{id}
DELETE
Delete — Delete a Custom Activity Type
/v1/custom-activity/{id}

MCP Tools

list-custom-activity-types

List Custom Activity Types

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

Create new Custom Activity Type

retrieve-single-custom-activity-type

Retrieve a single Custom Activity Type

read-only idempotent
update-existing-custom-activity-type

Update existing Custom Activity Type

idempotent
delete-custom-activity-type

Delete a Custom Activity Type

idempotent

Capability Spec

close-subpackage-customactivitytypes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_customActivityTypes
  description: 'API Endpoints — subpackage_customActivityTypes. 5 operations. Lead operation: List Custom Activity Types.
    Self-contained Naftiko capability covering one Close business surface.'
  tags:
  - Close
  - subpackage_customActivityTypes
  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-customactivitytypes
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_customActivityTypes business capability. Self-contained, no shared references.
    resources:
    - name: custom_activity
      path: /custom_activity/
      operations:
      - name: list
        method: GET
        description: List Custom Activity Types
        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: create
        method: POST
        description: Create new Custom Activity Type
        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_activity-id
      path: /custom_activity/{id}/
      operations:
      - name: get
        method: GET
        description: Retrieve a single Custom Activity Type
        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: update
        method: PUT
        description: Update existing Custom Activity Type
        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 a Custom Activity Type
        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-customactivitytypes-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_customActivityTypes. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/custom-activity
      name: custom-activity
      description: REST surface for custom_activity.
      operations:
      - method: GET
        name: list
        description: List Custom Activity Types
        call: close-subpackage-customactivitytypes.list
        with:
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create
        description: Create new Custom Activity Type
        call: close-subpackage-customactivitytypes.create
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/custom-activity/{id}
      name: custom-activity-id
      description: REST surface for custom_activity-id.
      operations:
      - method: GET
        name: get
        description: Retrieve a single Custom Activity Type
        call: close-subpackage-customactivitytypes.get
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: update
        description: Update existing Custom Activity Type
        call: close-subpackage-customactivitytypes.update
        with:
          id: rest.id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Custom Activity Type
        call: close-subpackage-customactivitytypes.delete
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-customactivitytypes-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_customActivityTypes. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-custom-activity-types
      description: List Custom Activity Types
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-customactivitytypes.list
      with:
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-custom-activity-type
      description: Create new Custom Activity Type
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-customactivitytypes.create
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-single-custom-activity-type
      description: Retrieve a single Custom Activity Type
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-customactivitytypes.get
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-existing-custom-activity-type
      description: Update existing Custom Activity Type
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: close-subpackage-customactivitytypes.update
      with:
        id: tools.id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-custom-activity-type
      description: Delete a Custom Activity Type
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: close-subpackage-customactivitytypes.delete
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.