openapi: 3.2.0 info: title: LDM v3 Content Analyzer API description: 'Multi-tenant B2B outreach automation platform. Auth: JWT Bearer (15-min) or tenant API key (ldm_*) managed in CRM Settings → API Keys. All tenant-scoped endpoints require the X-Tenant-Id header.' version: 1.0.0 contact: {} servers: - url: https://api.live-direct-marketing.online description: Production - url: https://api.dev.live-direct-marketing.online description: Development - url: http://127.0.0.1:3000 description: Local tags: - name: Content Analyzer paths: /api/content-analyzer/check: post: operationId: ContentAnalyzerController_check parameters: - name: X-Tenant-Id in: header required: false schema: type: string format: uuid description: Tenant UUID — required for all tenant-scoped endpoints requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CheckContentDto' responses: '201': description: '' security: - jwt: [] summary: Analyze email subject/body for spam triggers and return score 0..100. tags: - Content Analyzer x-required-scope: - mailing:read components: schemas: CheckContentDto: type: object properties: subject: type: string description: Subject bodyText: type: string description: Body text bodyHtml: type: string description: Body html customRules: description: Custom rules type: array items: $ref: '#/components/schemas/CustomRuleDto' CustomRuleDto: type: object properties: id: type: string description: Rule id phrase: type: string description: Phrase to search severity: type: string description: Severity scope: type: string description: Scope message: type: string description: Message weight: type: number description: Weight required: - id - phrase - severity - scope - weight securitySchemes: jwt: scheme: bearer bearerFormat: JWT type: http description: JWT access token from /auth/login (Bearer ) tenant-api-key: scheme: bearer bearerFormat: JWT type: http description: Tenant API key (Bearer ldm_*) for MCP/A2A clients. Issued via CRM Settings → API Keys. rpa-service: scheme: bearer bearerFormat: JWT type: http description: Dedicated RPA service key. No tenant API-key or query-key authentication.