# Get Email Campaign

`lawmatics_get-email-campaign` · Lawmatics MCP tool · Email Campaigns

Fetch a single email campaign from Lawmatics by its composite ID (e.g. "MarketingCampaign-1"), including a `relationships` envelope of {id,type} pointers to its audience and custom email template.

## Input

- **campaignId** `string` (required, pattern: ^[A-Za-z]+-\d+$) — Composite campaign ID to fetch, in the form "TypeofCampaign-id" (e.g. "MarketingCampaign-1", "RecurringCampaign-1", "DateCampaign-1")

## Output

- **id** `string` (required) — Composite campaign ID (e.g. "MarketingCampaign-1"); pass this to the stats tool to fetch per-recipient stats
- **name** `string` (required) — Campaign name as shown in Lawmatics
- **status** `number` (required) — Integer status code for the campaign (e.g. 0, 1); value meanings are not documented
- **openRate** `number | null` (required) — Email open rate for the campaign; null when not yet computed
- **sendCount** `number | null` (required) — Number of emails sent for this campaign; null when not yet computed
- **sentAt** `string | null` (required) — When the campaign was sent, as an ISO 8601 timestamp; null if it has not been sent
- **startedProcessingAt** `string | null` (required) — When the campaign started processing, as an ISO 8601 timestamp; null if it has not started
- **campaignType** `string` (required) — Campaign kind; observed values are "MarketingCampaign" and "RecurringCampaign" ("DateCampaign" is documented but unobserved in responses)
- **createdAt** `string` (required) — When the campaign was created, as an ISO 8601 timestamp
- **relationships** `object` (required) — JSON:API relationship pointers to related records as {id,type} stubs. Not materialized — follow a pointer by calling that resource's own get tool (e.g. type 'custom_email' -> get-custom-email). PROVISIONAL: shape modeled from documentation, not yet live-confirmed.
  - **audience** `object | null` (required) — Audience this campaign targets (type 'audience') pointer; null when it has no audience
    - **id** `string` (required) — ID of the referenced Lawmatics record
    - **type** `string` (required) — JSON:API record class of the reference (e.g. "user", "contact", "prospect", "firm"); resolve it by calling that resource's own get/find tool — this pointer is not materialized
  - **customEmail** `object | null` (required) — Custom email template this campaign sends (type 'custom_email') pointer; null when unset
    - **id** `string` (required) — ID of the referenced Lawmatics record
    - **type** `string` (required) — JSON:API record class of the reference (e.g. "user", "contact", "prospect", "firm"); resolve it by calling that resource's own get/find tool — this pointer is not materialized
