naftiko: 1.0.0-alpha2 info: label: Twilio SendGrid Account Provisioning API — Account description: 'Twilio SendGrid Account Provisioning API — Account. 4 operations. Lead operation: Get all accounts. Self-contained Naftiko capability covering one Sendgrid business surface.' tags: - Sendgrid - Account created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SENDGRID_API_KEY: SENDGRID_API_KEY capability: consumes: - type: http namespace: tsg_account_provisioning_v3-account baseUri: https://api.sendgrid.com description: Twilio SendGrid Account Provisioning API — Account business capability. Self-contained, no shared references. resources: - name: v3-partners-accounts path: /v3/partners/accounts operations: - name: listaccount method: GET description: Get all accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createaccount method: POST description: Create an account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v3-partners-accounts-accountID path: /v3/partners/accounts/{accountID} operations: - name: deleteaccount method: DELETE description: Delete an account outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v3-partners-accounts-accountID-sso path: /v3/partners/accounts/{accountID}/sso operations: - name: authenticateaccount method: POST description: Authenticate an account with single sign on outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SENDGRID_API_KEY}}' exposes: - type: rest namespace: tsg_account_provisioning_v3-account-rest port: 8080 description: REST adapter for Twilio SendGrid Account Provisioning API — Account. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v3/partners/accounts name: v3-partners-accounts description: REST surface for v3-partners-accounts. operations: - method: GET name: listaccount description: Get all accounts call: tsg_account_provisioning_v3-account.listaccount outputParameters: - type: object mapping: $. - method: POST name: createaccount description: Create an account call: tsg_account_provisioning_v3-account.createaccount with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v3/partners/accounts/{accountid} name: v3-partners-accounts-accountid description: REST surface for v3-partners-accounts-accountID. operations: - method: DELETE name: deleteaccount description: Delete an account call: tsg_account_provisioning_v3-account.deleteaccount outputParameters: - type: object mapping: $. - path: /v1/v3/partners/accounts/{accountid}/sso name: v3-partners-accounts-accountid-sso description: REST surface for v3-partners-accounts-accountID-sso. operations: - method: POST name: authenticateaccount description: Authenticate an account with single sign on call: tsg_account_provisioning_v3-account.authenticateaccount outputParameters: - type: object mapping: $. - type: mcp namespace: tsg_account_provisioning_v3-account-mcp port: 9090 transport: http description: MCP adapter for Twilio SendGrid Account Provisioning API — Account. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-accounts description: Get all accounts hints: readOnly: true destructive: false idempotent: true call: tsg_account_provisioning_v3-account.listaccount outputParameters: - type: object mapping: $. - name: create-account description: Create an account hints: readOnly: false destructive: false idempotent: false call: tsg_account_provisioning_v3-account.createaccount with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-account description: Delete an account hints: readOnly: false destructive: true idempotent: true call: tsg_account_provisioning_v3-account.deleteaccount outputParameters: - type: object mapping: $. - name: authenticate-account-single-sign description: Authenticate an account with single sign on hints: readOnly: false destructive: false idempotent: false call: tsg_account_provisioning_v3-account.authenticateaccount outputParameters: - type: object mapping: $.