naftiko: 1.0.0-alpha2 info: label: Management API — Email Templates description: 'Management API — Email Templates. 5 operations. Lead operation: Create New Email Template. Self-contained Naftiko capability covering one Moesif business surface.' tags: - Moesif - Email Templates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MOESIF_API_KEY: MOESIF_API_KEY capability: consumes: - type: http namespace: moesif-email-templates baseUri: https://api.moesif.com/v1 description: Management API — Email Templates business capability. Self-contained, no shared references. resources: - name: ~-emails-templates path: /~/emails/templates operations: - name: createemailtemplate method: POST description: Create New Email Template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string required: true - name: app_id in: query type: string - name: body in: body type: object description: Request body (JSON). required: true - name: getemailtemplates method: GET description: Get Email Templates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string required: true - name: app_id in: query type: string - name: cohort_id in: query type: string - name: ~-emails-templates-id path: /~/emails/templates/{id} operations: - name: updateemailtemplate method: POST description: Update an Email Template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string required: true - name: app_id in: query type: string - name: id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: getemailtemplate method: GET description: Get Email Template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string required: true - name: app_id in: query type: string - name: id in: path type: string required: true - name: deleteemailtemplate method: DELETE description: Delete Email Template outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: orgId in: path type: string required: true - name: app_id in: query type: string - name: id in: path type: string required: true authentication: type: bearer token: '{{env.MOESIF_API_KEY}}' exposes: - type: rest namespace: moesif-email-templates-rest port: 8080 description: REST adapter for Management API — Email Templates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1//emails/templates name: emails-templates description: REST surface for ~-emails-templates. operations: - method: POST name: createemailtemplate description: Create New Email Template call: moesif-email-templates.createemailtemplate with: orgId: rest.orgId app_id: rest.app_id body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getemailtemplates description: Get Email Templates call: moesif-email-templates.getemailtemplates with: orgId: rest.orgId app_id: rest.app_id cohort_id: rest.cohort_id outputParameters: - type: object mapping: $. - path: /v1//emails/templates/{id} name: emails-templates-id description: REST surface for ~-emails-templates-id. operations: - method: POST name: updateemailtemplate description: Update an Email Template call: moesif-email-templates.updateemailtemplate with: orgId: rest.orgId app_id: rest.app_id id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getemailtemplate description: Get Email Template call: moesif-email-templates.getemailtemplate with: orgId: rest.orgId app_id: rest.app_id id: rest.id outputParameters: - type: object mapping: $. - method: DELETE name: deleteemailtemplate description: Delete Email Template call: moesif-email-templates.deleteemailtemplate with: orgId: rest.orgId app_id: rest.app_id id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: moesif-email-templates-mcp port: 9090 transport: http description: MCP adapter for Management API — Email Templates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-new-email-template description: Create New Email Template hints: readOnly: false destructive: false idempotent: false call: moesif-email-templates.createemailtemplate with: orgId: tools.orgId app_id: tools.app_id body: tools.body outputParameters: - type: object mapping: $. - name: get-email-templates description: Get Email Templates hints: readOnly: true destructive: false idempotent: true call: moesif-email-templates.getemailtemplates with: orgId: tools.orgId app_id: tools.app_id cohort_id: tools.cohort_id outputParameters: - type: object mapping: $. - name: update-email-template description: Update an Email Template hints: readOnly: false destructive: false idempotent: false call: moesif-email-templates.updateemailtemplate with: orgId: tools.orgId app_id: tools.app_id id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: get-email-template description: Get Email Template hints: readOnly: true destructive: false idempotent: true call: moesif-email-templates.getemailtemplate with: orgId: tools.orgId app_id: tools.app_id id: tools.id outputParameters: - type: object mapping: $. - name: delete-email-template description: Delete Email Template hints: readOnly: false destructive: true idempotent: true call: moesif-email-templates.deleteemailtemplate with: orgId: tools.orgId app_id: tools.app_id id: tools.id outputParameters: - type: object mapping: $.