naftiko: 1.0.0-alpha2 info: label: Veryfi OCR API — W-2 Forms description: 'Veryfi OCR API — W-2 Forms. 4 operations. Lead operation: Process a W-2 Form. Self-contained Naftiko capability covering one Veryfi business surface.' tags: - Veryfi - W-2 Forms created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: VERYFI_API_KEY: VERYFI_API_KEY capability: consumes: - type: http namespace: ocr-w-2-forms baseUri: https://api.veryfi.com/api/v8 description: Veryfi OCR API — W-2 Forms business capability. Self-contained, no shared references. resources: - name: partner-w2s path: /partner/w2s operations: - name: processw2 method: POST description: Process a W-2 Form outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listw2s method: GET description: List All W-2 Forms outputRawFormat: json outputParameters: - name: result type: object value: $. - name: partner-w2s-documentId path: /partner/w2s/{documentId} operations: - name: getw2 method: GET description: Get a W-2 Form outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: documentId in: path type: integer required: true - name: deletew2 method: DELETE description: Delete a W-2 Form outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: documentId in: path type: integer required: true authentication: type: apikey key: CLIENT-ID value: '{{env.VERYFI_API_KEY}}' placement: header exposes: - type: rest namespace: ocr-w-2-forms-rest port: 8080 description: REST adapter for Veryfi OCR API — W-2 Forms. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/partner/w2s name: partner-w2s description: REST surface for partner-w2s. operations: - method: POST name: processw2 description: Process a W-2 Form call: ocr-w-2-forms.processw2 with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listw2s description: List All W-2 Forms call: ocr-w-2-forms.listw2s outputParameters: - type: object mapping: $. - path: /v1/partner/w2s/{documentid} name: partner-w2s-documentid description: REST surface for partner-w2s-documentId. operations: - method: GET name: getw2 description: Get a W-2 Form call: ocr-w-2-forms.getw2 with: documentId: rest.documentId outputParameters: - type: object mapping: $. - method: DELETE name: deletew2 description: Delete a W-2 Form call: ocr-w-2-forms.deletew2 with: documentId: rest.documentId outputParameters: - type: object mapping: $. - type: mcp namespace: ocr-w-2-forms-mcp port: 9090 transport: http description: MCP adapter for Veryfi OCR API — W-2 Forms. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: process-w-2-form description: Process a W-2 Form hints: readOnly: false destructive: false idempotent: false call: ocr-w-2-forms.processw2 with: body: tools.body outputParameters: - type: object mapping: $. - name: list-all-w-2-forms description: List All W-2 Forms hints: readOnly: true destructive: false idempotent: true call: ocr-w-2-forms.listw2s outputParameters: - type: object mapping: $. - name: get-w-2-form description: Get a W-2 Form hints: readOnly: true destructive: false idempotent: true call: ocr-w-2-forms.getw2 with: documentId: tools.documentId outputParameters: - type: object mapping: $. - name: delete-w-2-form description: Delete a W-2 Form hints: readOnly: false destructive: true idempotent: true call: ocr-w-2-forms.deletew2 with: documentId: tools.documentId outputParameters: - type: object mapping: $.