naftiko: 1.0.0-alpha2 info: label: API Reference — subpackage_organization description: 'API Reference — subpackage_organization. 6 operations. Lead operation: Get Current Organization. Self-contained Naftiko capability covering one Polytomic business surface.' tags: - Polytomic - subpackage_organization created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: POLYTOMIC_API_KEY: POLYTOMIC_API_KEY capability: consumes: - type: http namespace: polytomic-subpackage-organization baseUri: https://app.polytomic.com description: API Reference — subpackage_organization business capability. Self-contained, no shared references. resources: - name: api-organization path: /api/organization operations: - name: getcurrent method: GET description: Get Current Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Bearer user API key required: true - name: X-Polytomic-Version in: header type: string - name: api-organizations path: /api/organizations operations: - name: list method: GET description: Get Organizations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Bearer partner API key required: true - name: X-Polytomic-Version in: header type: string - name: create method: POST description: Create Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Bearer partner API key required: true - name: X-Polytomic-Version in: header type: string - name: body in: body type: object description: Request body (JSON). required: false - name: api-organizations-id path: /api/organizations/{id} operations: - name: get method: GET description: Get Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Unique identifier of the organization. required: true - name: Authorization in: header type: string description: Bearer partner API key required: true - name: X-Polytomic-Version in: header type: string - name: update method: PUT description: Update Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Unique identifier of the organization to update. required: true - name: Authorization in: header type: string description: Bearer partner API key required: true - name: X-Polytomic-Version in: header type: string - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete Organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Unique identifier of the organization. required: true - name: Authorization in: header type: string description: Bearer partner API key required: true - name: X-Polytomic-Version in: header type: string authentication: type: bearer token: '{{env.POLYTOMIC_API_KEY}}' exposes: - type: rest namespace: polytomic-subpackage-organization-rest port: 8080 description: REST adapter for API Reference — subpackage_organization. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/organization name: api-organization description: REST surface for api-organization. operations: - method: GET name: getcurrent description: Get Current Organization call: polytomic-subpackage-organization.getcurrent with: Authorization: rest.Authorization X-Polytomic-Version: rest.X-Polytomic-Version outputParameters: - type: object mapping: $. - path: /v1/api/organizations name: api-organizations description: REST surface for api-organizations. operations: - method: GET name: list description: Get Organizations call: polytomic-subpackage-organization.list with: Authorization: rest.Authorization X-Polytomic-Version: rest.X-Polytomic-Version outputParameters: - type: object mapping: $. - method: POST name: create description: Create Organization call: polytomic-subpackage-organization.create with: Authorization: rest.Authorization X-Polytomic-Version: rest.X-Polytomic-Version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/organizations/{id} name: api-organizations-id description: REST surface for api-organizations-id. operations: - method: GET name: get description: Get Organization call: polytomic-subpackage-organization.get with: id: rest.id Authorization: rest.Authorization X-Polytomic-Version: rest.X-Polytomic-Version outputParameters: - type: object mapping: $. - method: PUT name: update description: Update Organization call: polytomic-subpackage-organization.update with: id: rest.id Authorization: rest.Authorization X-Polytomic-Version: rest.X-Polytomic-Version body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete Organization call: polytomic-subpackage-organization.delete with: id: rest.id Authorization: rest.Authorization X-Polytomic-Version: rest.X-Polytomic-Version outputParameters: - type: object mapping: $. - type: mcp namespace: polytomic-subpackage-organization-mcp port: 9090 transport: http description: MCP adapter for API Reference — subpackage_organization. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-current-organization description: Get Current Organization hints: readOnly: true destructive: false idempotent: true call: polytomic-subpackage-organization.getcurrent with: Authorization: tools.Authorization X-Polytomic-Version: tools.X-Polytomic-Version outputParameters: - type: object mapping: $. - name: get-organizations description: Get Organizations hints: readOnly: true destructive: false idempotent: true call: polytomic-subpackage-organization.list with: Authorization: tools.Authorization X-Polytomic-Version: tools.X-Polytomic-Version outputParameters: - type: object mapping: $. - name: create-organization description: Create Organization hints: readOnly: false destructive: false idempotent: false call: polytomic-subpackage-organization.create with: Authorization: tools.Authorization X-Polytomic-Version: tools.X-Polytomic-Version body: tools.body outputParameters: - type: object mapping: $. - name: get-organization description: Get Organization hints: readOnly: true destructive: false idempotent: true call: polytomic-subpackage-organization.get with: id: tools.id Authorization: tools.Authorization X-Polytomic-Version: tools.X-Polytomic-Version outputParameters: - type: object mapping: $. - name: update-organization description: Update Organization hints: readOnly: false destructive: false idempotent: true call: polytomic-subpackage-organization.update with: id: tools.id Authorization: tools.Authorization X-Polytomic-Version: tools.X-Polytomic-Version body: tools.body outputParameters: - type: object mapping: $. - name: delete-organization description: Delete Organization hints: readOnly: false destructive: true idempotent: true call: polytomic-subpackage-organization.delete with: id: tools.id Authorization: tools.Authorization X-Polytomic-Version: tools.X-Polytomic-Version outputParameters: - type: object mapping: $.