naftiko: 1.0.0-alpha2 info: label: Portkey API — Rate Limits Policies description: 'Portkey API — Rate Limits Policies. 5 operations. Lead operation: Create Rate Limits Policy. Self-contained Naftiko capability covering one Portkey business surface.' tags: - Portkey - Rate Limits Policies created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PORTKEY_API_KEY: PORTKEY_API_KEY capability: consumes: - type: http namespace: portkey-rate-limits-policies baseUri: https://api.portkey.ai/v1 description: Portkey API — Rate Limits Policies business capability. Self-contained, no shared references. resources: - name: policies-rate-limits path: /policies/rate-limits operations: - name: createratelimitspolicy method: POST description: Create Rate Limits Policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listratelimitspolicies method: GET description: List Rate Limits Policies outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter by status - name: type in: query type: string description: Filter by policy type - name: unit in: query type: string description: Filter by rate unit - name: policies-rate-limits-rateLimitsPolicyId path: /policies/rate-limits/{rateLimitsPolicyId} operations: - name: getratelimitspolicy method: GET description: Get Rate Limits Policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter by status - name: updateratelimitspolicy method: PUT description: Update Rate Limits Policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteratelimitspolicy method: DELETE description: Delete Rate Limits Policy outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.PORTKEY_API_KEY}}' exposes: - type: rest namespace: portkey-rate-limits-policies-rest port: 8080 description: REST adapter for Portkey API — Rate Limits Policies. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/policies/rate-limits name: policies-rate-limits description: REST surface for policies-rate-limits. operations: - method: POST name: createratelimitspolicy description: Create Rate Limits Policy call: portkey-rate-limits-policies.createratelimitspolicy with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listratelimitspolicies description: List Rate Limits Policies call: portkey-rate-limits-policies.listratelimitspolicies with: status: rest.status type: rest.type unit: rest.unit outputParameters: - type: object mapping: $. - path: /v1/policies/rate-limits/{ratelimitspolicyid} name: policies-rate-limits-ratelimitspolicyid description: REST surface for policies-rate-limits-rateLimitsPolicyId. operations: - method: GET name: getratelimitspolicy description: Get Rate Limits Policy call: portkey-rate-limits-policies.getratelimitspolicy with: status: rest.status outputParameters: - type: object mapping: $. - method: PUT name: updateratelimitspolicy description: Update Rate Limits Policy call: portkey-rate-limits-policies.updateratelimitspolicy with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteratelimitspolicy description: Delete Rate Limits Policy call: portkey-rate-limits-policies.deleteratelimitspolicy outputParameters: - type: object mapping: $. - type: mcp namespace: portkey-rate-limits-policies-mcp port: 9090 transport: http description: MCP adapter for Portkey API — Rate Limits Policies. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-rate-limits-policy description: Create Rate Limits Policy hints: readOnly: false destructive: false idempotent: false call: portkey-rate-limits-policies.createratelimitspolicy with: body: tools.body outputParameters: - type: object mapping: $. - name: list-rate-limits-policies description: List Rate Limits Policies hints: readOnly: true destructive: false idempotent: true call: portkey-rate-limits-policies.listratelimitspolicies with: status: tools.status type: tools.type unit: tools.unit outputParameters: - type: object mapping: $. - name: get-rate-limits-policy description: Get Rate Limits Policy hints: readOnly: true destructive: false idempotent: true call: portkey-rate-limits-policies.getratelimitspolicy with: status: tools.status outputParameters: - type: object mapping: $. - name: update-rate-limits-policy description: Update Rate Limits Policy hints: readOnly: false destructive: false idempotent: true call: portkey-rate-limits-policies.updateratelimitspolicy with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-rate-limits-policy description: Delete Rate Limits Policy hints: readOnly: false destructive: true idempotent: true call: portkey-rate-limits-policies.deleteratelimitspolicy outputParameters: - type: object mapping: $.