naftiko: 1.0.0-alpha2 info: label: Twilio SendGrid API Keys API — API Keys description: 'Twilio SendGrid API Keys API — API Keys. 6 operations. Lead operation: Create API keys. Self-contained Naftiko capability covering one Sendgrid business surface.' tags: - Sendgrid - API Keys created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SENDGRID_API_KEY: SENDGRID_API_KEY capability: consumes: - type: http namespace: tsg_api_keys_v3-api-keys baseUri: https://api.sendgrid.com description: Twilio SendGrid API Keys API — API Keys business capability. Self-contained, no shared references. resources: - name: v3-api_keys path: /v3/api_keys operations: - name: createapikey method: POST description: Create API keys outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: listapikey method: GET description: Retrieve all API Keys belonging to the authenticated user outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer - name: v3-api_keys-api_key_id path: /v3/api_keys/{api_key_id} operations: - name: getapikey method: GET description: Retrieve an existing API Key outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateapikeyname method: PATCH description: Update API key name outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: updateapikey method: PUT description: Update API key name and scopes outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: deleteapikey method: DELETE description: Delete API keys outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SENDGRID_API_KEY}}' exposes: - type: rest namespace: tsg_api_keys_v3-api-keys-rest port: 8080 description: REST adapter for Twilio SendGrid API Keys API — API Keys. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v3/api-keys name: v3-api-keys description: REST surface for v3-api_keys. operations: - method: POST name: createapikey description: Create API keys call: tsg_api_keys_v3-api-keys.createapikey with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listapikey description: Retrieve all API Keys belonging to the authenticated user call: tsg_api_keys_v3-api-keys.listapikey with: limit: rest.limit outputParameters: - type: object mapping: $. - path: /v1/v3/api-keys/{api-key-id} name: v3-api-keys-api-key-id description: REST surface for v3-api_keys-api_key_id. operations: - method: GET name: getapikey description: Retrieve an existing API Key call: tsg_api_keys_v3-api-keys.getapikey outputParameters: - type: object mapping: $. - method: PATCH name: updateapikeyname description: Update API key name call: tsg_api_keys_v3-api-keys.updateapikeyname with: body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: updateapikey description: Update API key name and scopes call: tsg_api_keys_v3-api-keys.updateapikey with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteapikey description: Delete API keys call: tsg_api_keys_v3-api-keys.deleteapikey outputParameters: - type: object mapping: $. - type: mcp namespace: tsg_api_keys_v3-api-keys-mcp port: 9090 transport: http description: MCP adapter for Twilio SendGrid API Keys API — API Keys. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-api-keys description: Create API keys hints: readOnly: false destructive: false idempotent: false call: tsg_api_keys_v3-api-keys.createapikey with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-all-api-keys-belonging description: Retrieve all API Keys belonging to the authenticated user hints: readOnly: true destructive: false idempotent: true call: tsg_api_keys_v3-api-keys.listapikey with: limit: tools.limit outputParameters: - type: object mapping: $. - name: retrieve-existing-api-key description: Retrieve an existing API Key hints: readOnly: true destructive: false idempotent: true call: tsg_api_keys_v3-api-keys.getapikey outputParameters: - type: object mapping: $. - name: update-api-key-name description: Update API key name hints: readOnly: false destructive: false idempotent: true call: tsg_api_keys_v3-api-keys.updateapikeyname with: body: tools.body outputParameters: - type: object mapping: $. - name: update-api-key-name-and description: Update API key name and scopes hints: readOnly: false destructive: false idempotent: true call: tsg_api_keys_v3-api-keys.updateapikey with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-api-keys description: Delete API keys hints: readOnly: false destructive: true idempotent: true call: tsg_api_keys_v3-api-keys.deleteapikey outputParameters: - type: object mapping: $.