naftiko: 1.0.0-alpha2 info: label: Snyk API — Invites description: 'Snyk API — Invites. 3 operations. Lead operation: List pending user invitations to an organization.. Self-contained Naftiko capability covering one Snyk business surface.' tags: - Snyk - Invites created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SNYK_API_KEY: SNYK_API_KEY capability: consumes: - type: http namespace: rest-invites baseUri: https://api.snyk.io/rest description: Snyk API — Invites business capability. Self-contained, no shared references. resources: - name: orgs-org_id-invites path: /orgs/{org_id}/invites operations: - name: listorginvitation method: GET description: List pending user invitations to an organization. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_id in: path type: string description: The id of the org the user is being invited to required: true - name: createorginvitation method: POST description: Invite a user to an organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_id in: path type: string description: The id of the org the user is being invited to required: true - name: body in: body type: object description: Request body (JSON). required: false - name: orgs-org_id-invites-invite_id path: /orgs/{org_id}/invites/{invite_id} operations: - name: deleteorginvitation method: DELETE description: Cancel a pending user invitations to an organization. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_id in: path type: string description: The id of the org the user is being invited to required: true - name: invite_id in: path type: string description: The id of the pending invite to cancel required: true authentication: type: bearer token: '{{env.SNYK_API_KEY}}' exposes: - type: rest namespace: rest-invites-rest port: 8080 description: REST adapter for Snyk API — Invites. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org-id}/invites name: orgs-org-id-invites description: REST surface for orgs-org_id-invites. operations: - method: GET name: listorginvitation description: List pending user invitations to an organization. call: rest-invites.listorginvitation with: org_id: rest.org_id outputParameters: - type: object mapping: $. - method: POST name: createorginvitation description: Invite a user to an organization call: rest-invites.createorginvitation with: org_id: rest.org_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org-id}/invites/{invite-id} name: orgs-org-id-invites-invite-id description: REST surface for orgs-org_id-invites-invite_id. operations: - method: DELETE name: deleteorginvitation description: Cancel a pending user invitations to an organization. call: rest-invites.deleteorginvitation with: org_id: rest.org_id invite_id: rest.invite_id outputParameters: - type: object mapping: $. - type: mcp namespace: rest-invites-mcp port: 9090 transport: http description: MCP adapter for Snyk API — Invites. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-pending-user-invitations-organization description: List pending user invitations to an organization. hints: readOnly: true destructive: false idempotent: true call: rest-invites.listorginvitation with: org_id: tools.org_id outputParameters: - type: object mapping: $. - name: invite-user-organization description: Invite a user to an organization hints: readOnly: false destructive: false idempotent: false call: rest-invites.createorginvitation with: org_id: tools.org_id body: tools.body outputParameters: - type: object mapping: $. - name: cancel-pending-user-invitations-organization description: Cancel a pending user invitations to an organization. hints: readOnly: false destructive: true idempotent: true call: rest-invites.deleteorginvitation with: org_id: tools.org_id invite_id: tools.invite_id outputParameters: - type: object mapping: $.