Close · Capability

API Endpoints — subpackage_activitiesCustomActivities

API Endpoints — subpackage_activitiesCustomActivities. 5 operations. Lead operation: List or filter all Custom Activity instances. Self-contained Naftiko capability covering one Close business surface.

Run with Naftiko Closesubpackage_activitiesCustomActivities

What You Can Do

GET
List — List or filter all Custom Activity instances
/v1/activity/custom
POST
Create — Create a new Custom Activity instance
/v1/activity/custom
GET
Get — Get a single Custom Activity instance
/v1/activity/custom/{id}
PUT
Update — Updating a Custom Activity instance
/v1/activity/custom/{id}
DELETE
Delete — Delete a Custom Activity instance
/v1/activity/custom/{id}

MCP Tools

list-filter-all-custom-activity

List or filter all Custom Activity instances

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

Create a new Custom Activity instance

get-single-custom-activity-instance

Get a single Custom Activity instance

read-only idempotent
updating-custom-activity-instance

Updating a Custom Activity instance

idempotent
delete-custom-activity-instance

Delete a Custom Activity instance

idempotent

Capability Spec

close-subpackage-activitiescustomactivities.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_activitiesCustomActivities
  description: 'API Endpoints — subpackage_activitiesCustomActivities. 5 operations. Lead operation: List or filter all Custom
    Activity instances. Self-contained Naftiko capability covering one Close business surface.'
  tags:
  - Close
  - subpackage_activitiesCustomActivities
  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-activitiescustomactivities
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_activitiesCustomActivities business capability. Self-contained, no shared references.
    resources:
    - name: activity-custom
      path: /activity/custom/
      operations:
      - name: list
        method: GET
        description: List or filter all Custom Activity instances
        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: id__in
          in: query
          type:
          - array
          - 'null'
          description: Filter by activity IDs (comma-separated)
        - name: lead_id
          in: query
          type:
          - array
          - 'null'
          description: Filter by lead IDs (comma-separated)
        - name: contact_id
          in: query
          type:
          - array
          - 'null'
          description: Filter by contact IDs (comma-separated)
        - name: user_id
          in: query
          type:
          - array
          - 'null'
          description: Filter by user IDs (comma-separated)
        - name: organization_id
          in: query
          type:
          - string
          - 'null'
        - name: _type
          in: query
          type:
          - array
          - 'null'
          description: Filter by activity type, e.g. Call (comma-separated)
        - name: date_created__gte
          in: query
          type: string
        - name: date_created__lte
          in: query
          type: string
        - name: date_created__gt
          in: query
          type: string
        - name: date_created__lt
          in: query
          type: string
        - name: activity_at__gte
          in: query
          type: string
        - name: activity_at__lte
          in: query
          type: string
        - name: activity_at__gt
          in: query
          type: string
        - name: activity_at__lt
          in: query
          type: string
        - name: custom_activity_type_id
          in: query
          type:
          - array
          - 'null'
        - name: custom_activity_type_id__in
          in: query
          type: string
        - 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 Custom Activity instance
        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: activity-custom-id
      path: /activity/custom/{id}/
      operations:
      - name: get
        method: GET
        description: Get a single Custom Activity instance
        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: Updating a Custom Activity instance
        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 instance
        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-activitiescustomactivities-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_activitiesCustomActivities. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/activity/custom
      name: activity-custom
      description: REST surface for activity-custom.
      operations:
      - method: GET
        name: list
        description: List or filter all Custom Activity instances
        call: close-subpackage-activitiescustomactivities.list
        with:
          _limit: rest._limit
          _skip: rest._skip
          id__in: rest.id__in
          lead_id: rest.lead_id
          contact_id: rest.contact_id
          user_id: rest.user_id
          organization_id: rest.organization_id
          _type: rest._type
          date_created__gte: rest.date_created__gte
          date_created__lte: rest.date_created__lte
          date_created__gt: rest.date_created__gt
          date_created__lt: rest.date_created__lt
          activity_at__gte: rest.activity_at__gte
          activity_at__lte: rest.activity_at__lte
          activity_at__gt: rest.activity_at__gt
          activity_at__lt: rest.activity_at__lt
          custom_activity_type_id: rest.custom_activity_type_id
          custom_activity_type_id__in: rest.custom_activity_type_id__in
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create
        description: Create a new Custom Activity instance
        call: close-subpackage-activitiescustomactivities.create
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/activity/custom/{id}
      name: activity-custom-id
      description: REST surface for activity-custom-id.
      operations:
      - method: GET
        name: get
        description: Get a single Custom Activity instance
        call: close-subpackage-activitiescustomactivities.get
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: update
        description: Updating a Custom Activity instance
        call: close-subpackage-activitiescustomactivities.update
        with:
          id: rest.id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Custom Activity instance
        call: close-subpackage-activitiescustomactivities.delete
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-activitiescustomactivities-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_activitiesCustomActivities. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-filter-all-custom-activity
      description: List or filter all Custom Activity instances
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-activitiescustomactivities.list
      with:
        _limit: tools._limit
        _skip: tools._skip
        id__in: tools.id__in
        lead_id: tools.lead_id
        contact_id: tools.contact_id
        user_id: tools.user_id
        organization_id: tools.organization_id
        _type: tools._type
        date_created__gte: tools.date_created__gte
        date_created__lte: tools.date_created__lte
        date_created__gt: tools.date_created__gt
        date_created__lt: tools.date_created__lt
        activity_at__gte: tools.activity_at__gte
        activity_at__lte: tools.activity_at__lte
        activity_at__gt: tools.activity_at__gt
        activity_at__lt: tools.activity_at__lt
        custom_activity_type_id: tools.custom_activity_type_id
        custom_activity_type_id__in: tools.custom_activity_type_id__in
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-custom-activity-instance
      description: Create a new Custom Activity instance
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-activitiescustomactivities.create
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-custom-activity-instance
      description: Get a single Custom Activity instance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-activitiescustomactivities.get
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: updating-custom-activity-instance
      description: Updating a Custom Activity instance
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: close-subpackage-activitiescustomactivities.update
      with:
        id: tools.id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-custom-activity-instance
      description: Delete a Custom Activity instance
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: close-subpackage-activitiescustomactivities.delete
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.