naftiko: 1.0.0-alpha2 info: label: Portkey API — Secret-References description: 'Portkey API — Secret-References. 5 operations. Lead operation: List All Secret References. Self-contained Naftiko capability covering one Portkey business surface.' tags: - Portkey - Secret-References created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PORTKEY_API_KEY: PORTKEY_API_KEY capability: consumes: - type: http namespace: portkey-secret-references baseUri: https://api.portkey.ai/v1 description: Portkey API — Secret-References business capability. Self-contained, no shared references. resources: - name: secret-references path: /secret-references operations: - name: listsecretreferences method: GET description: List All Secret References outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: manager_type in: query type: string description: Filter by secret manager type - name: tags in: query type: string description: JSON-encoded object for tag filtering - name: search in: query type: string description: Search by name - name: current_page in: query type: integer description: Page index (0-based), defaults to 0 - name: page_size in: query type: integer description: Items per page (1-100), defaults to 20 - name: createsecretreference method: POST description: Create a Secret Reference outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: secret-references-secretReferenceId path: /secret-references/{secretReferenceId} operations: - name: getsecretreference method: GET description: Get a Secret Reference outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: secretReferenceId in: path type: string description: UUID or slug of the secret reference required: true - name: updatesecretreference method: PUT description: Update a Secret Reference outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: secretReferenceId in: path type: string description: UUID or slug of the secret reference required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletesecretreference method: DELETE description: Delete a Secret Reference outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: secretReferenceId in: path type: string description: UUID or slug of the secret reference required: true authentication: type: bearer token: '{{env.PORTKEY_API_KEY}}' exposes: - type: rest namespace: portkey-secret-references-rest port: 8080 description: REST adapter for Portkey API — Secret-References. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/secret-references name: secret-references description: REST surface for secret-references. operations: - method: GET name: listsecretreferences description: List All Secret References call: portkey-secret-references.listsecretreferences with: manager_type: rest.manager_type tags: rest.tags search: rest.search current_page: rest.current_page page_size: rest.page_size outputParameters: - type: object mapping: $. - method: POST name: createsecretreference description: Create a Secret Reference call: portkey-secret-references.createsecretreference with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/secret-references/{secretreferenceid} name: secret-references-secretreferenceid description: REST surface for secret-references-secretReferenceId. operations: - method: GET name: getsecretreference description: Get a Secret Reference call: portkey-secret-references.getsecretreference with: secretReferenceId: rest.secretReferenceId outputParameters: - type: object mapping: $. - method: PUT name: updatesecretreference description: Update a Secret Reference call: portkey-secret-references.updatesecretreference with: secretReferenceId: rest.secretReferenceId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletesecretreference description: Delete a Secret Reference call: portkey-secret-references.deletesecretreference with: secretReferenceId: rest.secretReferenceId outputParameters: - type: object mapping: $. - type: mcp namespace: portkey-secret-references-mcp port: 9090 transport: http description: MCP adapter for Portkey API — Secret-References. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-secret-references description: List All Secret References hints: readOnly: true destructive: false idempotent: true call: portkey-secret-references.listsecretreferences with: manager_type: tools.manager_type tags: tools.tags search: tools.search current_page: tools.current_page page_size: tools.page_size outputParameters: - type: object mapping: $. - name: create-secret-reference description: Create a Secret Reference hints: readOnly: false destructive: false idempotent: false call: portkey-secret-references.createsecretreference with: body: tools.body outputParameters: - type: object mapping: $. - name: get-secret-reference description: Get a Secret Reference hints: readOnly: true destructive: false idempotent: true call: portkey-secret-references.getsecretreference with: secretReferenceId: tools.secretReferenceId outputParameters: - type: object mapping: $. - name: update-secret-reference description: Update a Secret Reference hints: readOnly: false destructive: false idempotent: true call: portkey-secret-references.updatesecretreference with: secretReferenceId: tools.secretReferenceId body: tools.body outputParameters: - type: object mapping: $. - name: delete-secret-reference description: Delete a Secret Reference hints: readOnly: false destructive: true idempotent: true call: portkey-secret-references.deletesecretreference with: secretReferenceId: tools.secretReferenceId outputParameters: - type: object mapping: $.