naftiko: 1.0.0-alpha2 info: label: Portkey API — Moderations description: 'Portkey API — Moderations. 1 operations. Lead operation: Identify potentially harmful content in text and images. **Only** works with [OpenAI''s Moderations endpoint](https://platform.openai.com/docs/guides/moderation) currently.. Self-contained Naftiko capability covering one Portkey business surface.' tags: - Portkey - Moderations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PORTKEY_API_KEY: PORTKEY_API_KEY capability: consumes: - type: http namespace: portkey-moderations baseUri: https://api.portkey.ai/v1 description: Portkey API — Moderations business capability. Self-contained, no shared references. resources: - name: moderations path: /moderations operations: - name: createmoderation method: POST description: Identify potentially harmful content in text and images. **Only** works with [OpenAI's Moderations endpoint](https://platform.openai.com/docs/guides/moderation) currently. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.PORTKEY_API_KEY}}' exposes: - type: rest namespace: portkey-moderations-rest port: 8080 description: REST adapter for Portkey API — Moderations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/moderations name: moderations description: REST surface for moderations. operations: - method: POST name: createmoderation description: Identify potentially harmful content in text and images. **Only** works with [OpenAI's Moderations endpoint](https://platform.openai.com/docs/guides/moderation) currently. call: portkey-moderations.createmoderation with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: portkey-moderations-mcp port: 9090 transport: http description: MCP adapter for Portkey API — Moderations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: identify-potentially-harmful-content-text description: Identify potentially harmful content in text and images. **Only** works with [OpenAI's Moderations endpoint](https://platform.openai.com/docs/guides/moderation) currently. hints: readOnly: false destructive: false idempotent: false call: portkey-moderations.createmoderation with: body: tools.body outputParameters: - type: object mapping: $.