id: emailrep
name: EmailRep
version: 1.0.0
description: "EmailRep.io (API) — reputation and risk profile of an email address (deliverability, first/last seen, malicious activity, breaches, profiles), plus reporting an address as malicious. API-key authentication; stdlib-only, no extra Python dependencies."
changelog: "1.0.0 — Initial release: email reputation lookup and malicious-address reporting."
category: enrichment

config_schema:
  properties:
    api_key:
      type: string
      description: "EmailRep.io API key"
      x-soar-sensitive: true
  required:
    - api_key

commands:
  - id: get_reputation
    name: emailrep-get-reputation
    description: "Get the reputation and risk profile of an email address."
    risk: read
    inputs_schema:
      properties:
        email: { type: string, description: "Email address" }
      required: [email]
    outputs_schema: { properties: {} }
  - id: report
    name: emailrep-report
    description: "Report an email address as malicious to EmailRep.io."
    inputs_schema:
      properties:
        email: { type: string, description: "Email address to report" }
        tags: { type: string, description: "Comma-separated tags, e.g. bec,phishing (see EmailRep docs for the allowed set)" }
        description: { type: string, description: "Free-text description of the malicious activity" }
        timestamp: { type: number, description: "Unix time the activity occurred (default now)" }
        expires: { type: number, description: "Days after which the report expires" }
      required: [email, tags]
    outputs_schema: { properties: {} }

  - id: test_connection
    name: emailrep-test-connection
    description: "Verify the API key (used by the Test button)."
    risk: read
    inputs_schema:
      properties: {}
      required: []
    outputs_schema: { properties: {} }
