naftiko: 1.0.0-alpha2 info: label: LangSmith — api-key description: 'LangSmith — api-key. 6 operations. Lead operation: Get Api Keys. Self-contained Naftiko capability covering one Langchain business surface.' tags: - Langchain - api-key created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LANGCHAIN_API_KEY: LANGCHAIN_API_KEY capability: consumes: - type: http namespace: langchain-api-key baseUri: '' description: LangSmith — api-key business capability. Self-contained, no shared references. resources: - name: api-v1-api-key path: /api/v1/api-key operations: - name: getapikeysapiv1apikeyget method: GET description: Get Api Keys outputRawFormat: json outputParameters: - name: result type: object value: $. - name: generateapikeyapiv1apikeypost method: POST description: Generate Api Key outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-v1-api-key-current path: /api/v1/api-key/current operations: - name: getpersonalaccesstokensapiv1apikeycurrentget method: GET description: Get Personal Access Tokens outputRawFormat: json outputParameters: - name: result type: object value: $. - name: generatepersonalaccesstokenapiv1apikeycurrentpost method: POST description: Generate Personal Access Token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-v1-api-key-current-pat_id path: /api/v1/api-key/current/{pat_id} operations: - name: deletepersonalaccesstokenapiv1apikeycurrentpatiddelete method: DELETE description: Delete Personal Access Token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pat_id in: path type: string required: true - name: api-v1-api-key-api_key_id path: /api/v1/api-key/{api_key_id} operations: - name: deleteapikeyapiv1apikeyapikeyiddelete method: DELETE description: Delete Api Key outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: api_key_id in: path type: string required: true authentication: type: bearer token: '{{env.LANGCHAIN_API_KEY}}' exposes: - type: rest namespace: langchain-api-key-rest port: 8080 description: REST adapter for LangSmith — api-key. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/api-key name: api-v1-api-key description: REST surface for api-v1-api-key. operations: - method: GET name: getapikeysapiv1apikeyget description: Get Api Keys call: langchain-api-key.getapikeysapiv1apikeyget outputParameters: - type: object mapping: $. - method: POST name: generateapikeyapiv1apikeypost description: Generate Api Key call: langchain-api-key.generateapikeyapiv1apikeypost with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/api-key/current name: api-v1-api-key-current description: REST surface for api-v1-api-key-current. operations: - method: GET name: getpersonalaccesstokensapiv1apikeycurrentget description: Get Personal Access Tokens call: langchain-api-key.getpersonalaccesstokensapiv1apikeycurrentget outputParameters: - type: object mapping: $. - method: POST name: generatepersonalaccesstokenapiv1apikeycurrentpost description: Generate Personal Access Token call: langchain-api-key.generatepersonalaccesstokenapiv1apikeycurrentpost with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/api-key/current/{pat-id} name: api-v1-api-key-current-pat-id description: REST surface for api-v1-api-key-current-pat_id. operations: - method: DELETE name: deletepersonalaccesstokenapiv1apikeycurrentpatiddelete description: Delete Personal Access Token call: langchain-api-key.deletepersonalaccesstokenapiv1apikeycurrentpatiddelete with: pat_id: rest.pat_id outputParameters: - type: object mapping: $. - path: /v1/api/v1/api-key/{api-key-id} name: api-v1-api-key-api-key-id description: REST surface for api-v1-api-key-api_key_id. operations: - method: DELETE name: deleteapikeyapiv1apikeyapikeyiddelete description: Delete Api Key call: langchain-api-key.deleteapikeyapiv1apikeyapikeyiddelete with: api_key_id: rest.api_key_id outputParameters: - type: object mapping: $. - type: mcp namespace: langchain-api-key-mcp port: 9090 transport: http description: MCP adapter for LangSmith — api-key. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-api-keys description: Get Api Keys hints: readOnly: true destructive: false idempotent: true call: langchain-api-key.getapikeysapiv1apikeyget outputParameters: - type: object mapping: $. - name: generate-api-key description: Generate Api Key hints: readOnly: false destructive: false idempotent: false call: langchain-api-key.generateapikeyapiv1apikeypost with: body: tools.body outputParameters: - type: object mapping: $. - name: get-personal-access-tokens description: Get Personal Access Tokens hints: readOnly: true destructive: false idempotent: true call: langchain-api-key.getpersonalaccesstokensapiv1apikeycurrentget outputParameters: - type: object mapping: $. - name: generate-personal-access-token description: Generate Personal Access Token hints: readOnly: false destructive: false idempotent: false call: langchain-api-key.generatepersonalaccesstokenapiv1apikeycurrentpost with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-personal-access-token description: Delete Personal Access Token hints: readOnly: false destructive: true idempotent: true call: langchain-api-key.deletepersonalaccesstokenapiv1apikeycurrentpatiddelete with: pat_id: tools.pat_id outputParameters: - type: object mapping: $. - name: delete-api-key description: Delete Api Key hints: readOnly: false destructive: true idempotent: true call: langchain-api-key.deleteapikeyapiv1apikeyapikeyiddelete with: api_key_id: tools.api_key_id outputParameters: - type: object mapping: $.