naftiko: 1.0.0-alpha2 info: label: API Endpoints — subpackage_tasks description: 'API Endpoints — subpackage_tasks. 6 operations. Lead operation: List or filter tasks. Self-contained Naftiko capability covering one Close business surface.' tags: - Close - subpackage_tasks 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-tasks baseUri: https://api.close.com/api/v1 description: API Endpoints — subpackage_tasks business capability. Self-contained, no shared references. resources: - name: task path: /task/ operations: - name: list method: GET description: List or filter tasks 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: assigned_to in: query type: - string - 'null' - name: format in: query type: - string - 'null' - name: id in: query type: - string - 'null' - name: id__in in: query type: - string - 'null' - name: is_complete in: query type: - string - 'null' - name: lead_id in: query type: - string - 'null' - name: _order_by in: query type: - string - 'null' - name: organization_id in: query type: - string - 'null' - name: _type in: query type: - string - 'null' - name: _type__in in: query type: - string - 'null' - name: view in: query type: - string - 'null' - name: date in: query type: - string - 'null' - name: date__lt in: query type: - string - 'null' - name: date__lte in: query type: - string - 'null' - name: date__gt in: query type: - string - 'null' - name: date__gte in: query type: - string - 'null' - name: due_date in: query type: - string - 'null' - name: due_date__lt in: query type: - string - 'null' - name: due_date__lte in: query type: - string - 'null' - name: due_date__gt in: query type: - string - 'null' - name: due_date__gte in: query type: - string - 'null' - name: date_created__lt in: query type: - string - 'null' - name: date_created__lte in: query type: - string - 'null' - name: date_created__gt in: query type: - string - 'null' - name: date_created__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: date_updated__gt in: query type: - string - 'null' - name: date_updated__gte in: query type: - string - 'null' - 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 task outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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: body in: body type: object description: Request body (JSON). required: false - name: bulkupdate method: PUT description: Bulk-update tasks outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: assigned_to in: query type: - string - 'null' - name: format in: query type: - string - 'null' - name: id in: query type: - string - 'null' - name: id__in in: query type: - string - 'null' - name: is_complete in: query type: - string - 'null' - name: lead_id in: query type: - string - 'null' - name: _order_by in: query type: - string - 'null' - name: organization_id in: query type: - string - 'null' - name: _type in: query type: - string - 'null' - name: _type__in in: query type: - string - 'null' - name: view in: query type: - string - 'null' - name: date in: query type: - string - 'null' - name: date__lt in: query type: - string - 'null' - name: date__lte in: query type: - string - 'null' - name: date__gt in: query type: - string - 'null' - name: date__gte in: query type: - string - 'null' - name: due_date in: query type: - string - 'null' - name: due_date__lt in: query type: - string - 'null' - name: due_date__lte in: query type: - string - 'null' - name: due_date__gt in: query type: - string - 'null' - name: due_date__gte in: query type: - string - 'null' - name: date_created__lt in: query type: - string - 'null' - name: date_created__lte in: query type: - string - 'null' - name: date_created__gt in: query type: - string - 'null' - name: date_created__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: date_updated__gt in: query type: - string - 'null' - name: date_updated__gte in: query type: - string - 'null' - 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: body in: body type: object description: Request body (JSON). required: false - name: task-id path: /task/{id}/ operations: - name: get method: GET description: Fetch a task'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 a task 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: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete a task 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-tasks-rest port: 8080 description: REST adapter for API Endpoints — subpackage_tasks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/task name: task description: REST surface for task. operations: - method: GET name: list description: List or filter tasks call: close-subpackage-tasks.list with: _limit: rest._limit _skip: rest._skip assigned_to: rest.assigned_to format: rest.format id: rest.id id__in: rest.id__in is_complete: rest.is_complete lead_id: rest.lead_id _order_by: rest._order_by organization_id: rest.organization_id _type: rest._type _type__in: rest._type__in view: rest.view date: rest.date date__lt: rest.date__lt date__lte: rest.date__lte date__gt: rest.date__gt date__gte: rest.date__gte due_date: rest.due_date due_date__lt: rest.due_date__lt due_date__lte: rest.due_date__lte due_date__gt: rest.due_date__gt due_date__gte: rest.due_date__gte date_created__lt: rest.date_created__lt date_created__lte: rest.date_created__lte date_created__gt: rest.date_created__gt date_created__gte: rest.date_created__gte date_updated__lt: rest.date_updated__lt date_updated__lte: rest.date_updated__lte date_updated__gt: rest.date_updated__gt date_updated__gte: rest.date_updated__gte _fields: rest._fields Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: POST name: create description: Create a task call: close-subpackage-tasks.create with: _fields: rest._fields Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: bulkupdate description: Bulk-update tasks call: close-subpackage-tasks.bulkupdate with: assigned_to: rest.assigned_to format: rest.format id: rest.id id__in: rest.id__in is_complete: rest.is_complete lead_id: rest.lead_id _order_by: rest._order_by organization_id: rest.organization_id _type: rest._type _type__in: rest._type__in view: rest.view date: rest.date date__lt: rest.date__lt date__lte: rest.date__lte date__gt: rest.date__gt date__gte: rest.date__gte due_date: rest.due_date due_date__lt: rest.due_date__lt due_date__lte: rest.due_date__lte due_date__gt: rest.due_date__gt due_date__gte: rest.due_date__gte date_created__lt: rest.date_created__lt date_created__lte: rest.date_created__lte date_created__gt: rest.date_created__gt date_created__gte: rest.date_created__gte date_updated__lt: rest.date_updated__lt date_updated__lte: rest.date_updated__lte date_updated__gt: rest.date_updated__gt date_updated__gte: rest.date_updated__gte _fields: rest._fields Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/task/{id} name: task-id description: REST surface for task-id. operations: - method: GET name: get description: Fetch a task's details call: close-subpackage-tasks.get with: id: rest.id _fields: rest._fields Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: PUT name: update description: Update a task call: close-subpackage-tasks.update with: id: rest.id _fields: rest._fields Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete a task call: close-subpackage-tasks.delete with: id: rest.id Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: close-subpackage-tasks-mcp port: 9090 transport: http description: MCP adapter for API Endpoints — subpackage_tasks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-filter-tasks description: List or filter tasks hints: readOnly: true destructive: false idempotent: true call: close-subpackage-tasks.list with: _limit: tools._limit _skip: tools._skip assigned_to: tools.assigned_to format: tools.format id: tools.id id__in: tools.id__in is_complete: tools.is_complete lead_id: tools.lead_id _order_by: tools._order_by organization_id: tools.organization_id _type: tools._type _type__in: tools._type__in view: tools.view date: tools.date date__lt: tools.date__lt date__lte: tools.date__lte date__gt: tools.date__gt date__gte: tools.date__gte due_date: tools.due_date due_date__lt: tools.due_date__lt due_date__lte: tools.due_date__lte due_date__gt: tools.due_date__gt due_date__gte: tools.due_date__gte date_created__lt: tools.date_created__lt date_created__lte: tools.date_created__lte date_created__gt: tools.date_created__gt date_created__gte: tools.date_created__gte date_updated__lt: tools.date_updated__lt date_updated__lte: tools.date_updated__lte date_updated__gt: tools.date_updated__gt date_updated__gte: tools.date_updated__gte _fields: tools._fields Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: create-task description: Create a task hints: readOnly: false destructive: false idempotent: false call: close-subpackage-tasks.create with: _fields: tools._fields Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: bulk-update-tasks description: Bulk-update tasks hints: readOnly: false destructive: false idempotent: true call: close-subpackage-tasks.bulkupdate with: assigned_to: tools.assigned_to format: tools.format id: tools.id id__in: tools.id__in is_complete: tools.is_complete lead_id: tools.lead_id _order_by: tools._order_by organization_id: tools.organization_id _type: tools._type _type__in: tools._type__in view: tools.view date: tools.date date__lt: tools.date__lt date__lte: tools.date__lte date__gt: tools.date__gt date__gte: tools.date__gte due_date: tools.due_date due_date__lt: tools.due_date__lt due_date__lte: tools.due_date__lte due_date__gt: tools.due_date__gt due_date__gte: tools.due_date__gte date_created__lt: tools.date_created__lt date_created__lte: tools.date_created__lte date_created__gt: tools.date_created__gt date_created__gte: tools.date_created__gte date_updated__lt: tools.date_updated__lt date_updated__lte: tools.date_updated__lte date_updated__gt: tools.date_updated__gt date_updated__gte: tools.date_updated__gte _fields: tools._fields Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: fetch-task-s-details description: Fetch a task's details hints: readOnly: true destructive: false idempotent: true call: close-subpackage-tasks.get with: id: tools.id _fields: tools._fields Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: update-task description: Update a task hints: readOnly: false destructive: false idempotent: true call: close-subpackage-tasks.update with: id: tools.id _fields: tools._fields Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: delete-task description: Delete a task hints: readOnly: false destructive: true idempotent: true call: close-subpackage-tasks.delete with: id: tools.id Authorization: tools.Authorization outputParameters: - type: object mapping: $.