Close · Capability

API Endpoints — subpackage_events

API Endpoints — subpackage_events. 2 operations. Lead operation: Retrieve a list of events. Self-contained Naftiko capability covering one Close business surface.

Run with Naftiko Closesubpackage_events

What You Can Do

GET
List — Retrieve a list of events
/v1/event
GET
Get — Retrieve a single event by ID
/v1/event/{id}

MCP Tools

retrieve-list-events

Retrieve a list of events

read-only idempotent
retrieve-single-event-id

Retrieve a single event by ID

read-only idempotent

Capability Spec

close-subpackage-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_events
  description: 'API Endpoints — subpackage_events. 2 operations. Lead operation: Retrieve a list of events. Self-contained
    Naftiko capability covering one Close business surface.'
  tags:
  - Close
  - subpackage_events
  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-events
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_events business capability. Self-contained, no shared references.
    resources:
    - name: event
      path: /event/
      operations:
      - name: list
        method: GET
        description: Retrieve a list of events
        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: object_type
          in: query
          type:
          - string
          - 'null'
        - name: object_id
          in: query
          type:
          - string
          - 'null'
        - name: lead_id
          in: query
          type:
          - string
          - 'null'
        - name: action
          in: query
          type:
          - string
          - 'null'
        - name: user_id
          in: query
          type:
          - string
          - 'null'
        - name: date_updated__gt
          in: query
          type:
          - string
          - 'null'
        - name: date_updated__gte
          in: query
          type:
          - string
          - 'null'
        - name: date_updated__lt
          in: query
          type:
          - string
          - 'null'
        - name: date_updated__lte
          in: query
          type:
          - string
          - 'null'
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
    - name: event-id
      path: /event/{id}/
      operations:
      - name: get
        method: GET
        description: Retrieve a single event by ID
        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-events-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_events. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/event
      name: event
      description: REST surface for event.
      operations:
      - method: GET
        name: list
        description: Retrieve a list of events
        call: close-subpackage-events.list
        with:
          _limit: rest._limit
          _skip: rest._skip
          object_type: rest.object_type
          object_id: rest.object_id
          lead_id: rest.lead_id
          action: rest.action
          user_id: rest.user_id
          date_updated__gt: rest.date_updated__gt
          date_updated__gte: rest.date_updated__gte
          date_updated__lt: rest.date_updated__lt
          date_updated__lte: rest.date_updated__lte
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/event/{id}
      name: event-id
      description: REST surface for event-id.
      operations:
      - method: GET
        name: get
        description: Retrieve a single event by ID
        call: close-subpackage-events.get
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_events. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: retrieve-list-events
      description: Retrieve a list of events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-events.list
      with:
        _limit: tools._limit
        _skip: tools._skip
        object_type: tools.object_type
        object_id: tools.object_id
        lead_id: tools.lead_id
        action: tools.action
        user_id: tools.user_id
        date_updated__gt: tools.date_updated__gt
        date_updated__gte: tools.date_updated__gte
        date_updated__lt: tools.date_updated__lt
        date_updated__lte: tools.date_updated__lte
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-single-event-id
      description: Retrieve a single event by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-events.get
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.