Close · Capability
API Endpoints — subpackage_smartViews
API Endpoints — subpackage_smartViews. 5 operations. Lead operation: List Smart Views. Self-contained Naftiko capability covering one Close business surface.
What You Can Do
GET
List
— List Smart Views
/v1/saved-search
POST
Create
— Create a Smart View
/v1/saved-search
GET
Get
— Get a single Smart View
/v1/saved-search/{id}
PUT
Update
— Update a Smart View
/v1/saved-search/{id}
DELETE
Delete
— Delete a Smart View
/v1/saved-search/{id}
MCP Tools
list-smart-views
List Smart Views
read-only
idempotent
create-smart-view
Create a Smart View
get-single-smart-view
Get a single Smart View
read-only
idempotent
update-smart-view
Update a Smart View
idempotent
delete-smart-view
Delete a Smart View
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: API Endpoints — subpackage_smartViews
description: 'API Endpoints — subpackage_smartViews. 5 operations. Lead operation: List Smart Views. Self-contained Naftiko
capability covering one Close business surface.'
tags:
- Close
- subpackage_smartViews
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-smartviews
baseUri: https://api.close.com/api/v1
description: API Endpoints — subpackage_smartViews business capability. Self-contained, no shared references.
resources:
- name: saved_search
path: /saved_search/
operations:
- name: list
method: GET
description: List Smart Views
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: type
in: query
type: string
- name: type__in
in: query
type: array
- 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 Smart View
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: saved_search-id
path: /saved_search/{id}/
operations:
- name: get
method: GET
description: Get a single Smart View
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 a Smart View
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 Smart View
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-smartviews-rest
port: 8080
description: REST adapter for API Endpoints — subpackage_smartViews. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/saved-search
name: saved-search
description: REST surface for saved_search.
operations:
- method: GET
name: list
description: List Smart Views
call: close-subpackage-smartviews.list
with:
_limit: rest._limit
_skip: rest._skip
type: rest.type
type__in: rest.type__in
Authorization: rest.Authorization
outputParameters:
- type: object
mapping: $.
- method: POST
name: create
description: Create a Smart View
call: close-subpackage-smartviews.create
with:
Authorization: rest.Authorization
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/saved-search/{id}
name: saved-search-id
description: REST surface for saved_search-id.
operations:
- method: GET
name: get
description: Get a single Smart View
call: close-subpackage-smartviews.get
with:
id: rest.id
Authorization: rest.Authorization
outputParameters:
- type: object
mapping: $.
- method: PUT
name: update
description: Update a Smart View
call: close-subpackage-smartviews.update
with:
id: rest.id
Authorization: rest.Authorization
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: delete
description: Delete a Smart View
call: close-subpackage-smartviews.delete
with:
id: rest.id
Authorization: rest.Authorization
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: close-subpackage-smartviews-mcp
port: 9090
transport: http
description: MCP adapter for API Endpoints — subpackage_smartViews. One tool per consumed operation, routed inline through
this capability's consumes block.
tools:
- name: list-smart-views
description: List Smart Views
hints:
readOnly: true
destructive: false
idempotent: true
call: close-subpackage-smartviews.list
with:
_limit: tools._limit
_skip: tools._skip
type: tools.type
type__in: tools.type__in
Authorization: tools.Authorization
outputParameters:
- type: object
mapping: $.
- name: create-smart-view
description: Create a Smart View
hints:
readOnly: false
destructive: false
idempotent: false
call: close-subpackage-smartviews.create
with:
Authorization: tools.Authorization
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: get-single-smart-view
description: Get a single Smart View
hints:
readOnly: true
destructive: false
idempotent: true
call: close-subpackage-smartviews.get
with:
id: tools.id
Authorization: tools.Authorization
outputParameters:
- type: object
mapping: $.
- name: update-smart-view
description: Update a Smart View
hints:
readOnly: false
destructive: false
idempotent: true
call: close-subpackage-smartviews.update
with:
id: tools.id
Authorization: tools.Authorization
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: delete-smart-view
description: Delete a Smart View
hints:
readOnly: false
destructive: true
idempotent: true
call: close-subpackage-smartviews.delete
with:
id: tools.id
Authorization: tools.Authorization
outputParameters:
- type: object
mapping: $.