naftiko: 1.0.0-alpha2 info: label: API Endpoints — subpackage_blockedPhoneNumbers description: 'API Endpoints — subpackage_blockedPhoneNumbers. 7 operations. Lead operation: List Blocked Phone Numbers. Self-contained Naftiko capability covering one Close business surface.' tags: - Close - subpackage_blockedPhoneNumbers 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-blockedphonenumbers baseUri: https://api.close.com/api/v1 description: API Endpoints — subpackage_blockedPhoneNumbers business capability. Self-contained, no shared references. resources: - name: blocked_phone_number path: /blocked_phone_number/ operations: - name: list method: GET description: List Blocked Phone Numbers 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: _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 Blocked Phone Number 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: blocked_phone_number-settings path: /blocked_phone_number/settings/ operations: - name: getsettings method: GET description: Retrieve Blocked Phone Number settings 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: updatesettings method: PUT description: Update Blocked Phone Number settings 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: blocked_phone_number-id path: /blocked_phone_number/{id}/ operations: - name: get method: GET description: Retrieve a single Blocked Phone Number 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 Blocked Phone Number 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 Blocked Phone Number 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-blockedphonenumbers-rest port: 8080 description: REST adapter for API Endpoints — subpackage_blockedPhoneNumbers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/blocked-phone-number name: blocked-phone-number description: REST surface for blocked_phone_number. operations: - method: GET name: list description: List Blocked Phone Numbers call: close-subpackage-blockedphonenumbers.list with: _limit: rest._limit _skip: rest._skip _fields: rest._fields Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: POST name: create description: Create a Blocked Phone Number call: close-subpackage-blockedphonenumbers.create with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/blocked-phone-number/settings name: blocked-phone-number-settings description: REST surface for blocked_phone_number-settings. operations: - method: GET name: getsettings description: Retrieve Blocked Phone Number settings call: close-subpackage-blockedphonenumbers.getsettings with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: PUT name: updatesettings description: Update Blocked Phone Number settings call: close-subpackage-blockedphonenumbers.updatesettings with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/blocked-phone-number/{id} name: blocked-phone-number-id description: REST surface for blocked_phone_number-id. operations: - method: GET name: get description: Retrieve a single Blocked Phone Number call: close-subpackage-blockedphonenumbers.get with: id: rest.id _fields: rest._fields Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: PUT name: update description: Update a Blocked Phone Number call: close-subpackage-blockedphonenumbers.update with: id: rest.id Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete a Blocked Phone Number call: close-subpackage-blockedphonenumbers.delete with: id: rest.id Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: close-subpackage-blockedphonenumbers-mcp port: 9090 transport: http description: MCP adapter for API Endpoints — subpackage_blockedPhoneNumbers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-blocked-phone-numbers description: List Blocked Phone Numbers hints: readOnly: true destructive: false idempotent: true call: close-subpackage-blockedphonenumbers.list with: _limit: tools._limit _skip: tools._skip _fields: tools._fields Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: create-blocked-phone-number description: Create a Blocked Phone Number hints: readOnly: false destructive: false idempotent: false call: close-subpackage-blockedphonenumbers.create with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-blocked-phone-number-settings description: Retrieve Blocked Phone Number settings hints: readOnly: true destructive: false idempotent: true call: close-subpackage-blockedphonenumbers.getsettings with: Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: update-blocked-phone-number-settings description: Update Blocked Phone Number settings hints: readOnly: false destructive: false idempotent: true call: close-subpackage-blockedphonenumbers.updatesettings with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-single-blocked-phone-number description: Retrieve a single Blocked Phone Number hints: readOnly: true destructive: false idempotent: true call: close-subpackage-blockedphonenumbers.get with: id: tools.id _fields: tools._fields Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: update-blocked-phone-number description: Update a Blocked Phone Number hints: readOnly: false destructive: false idempotent: true call: close-subpackage-blockedphonenumbers.update with: id: tools.id Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: delete-blocked-phone-number description: Delete a Blocked Phone Number hints: readOnly: false destructive: true idempotent: true call: close-subpackage-blockedphonenumbers.delete with: id: tools.id Authorization: tools.Authorization outputParameters: - type: object mapping: $.