# Create Email (`create_email`)

Part of the [Outfield MCP Server](https://run.outfieldapp.com/docs/mcp) docs. All tools: [llms.txt](https://run.outfieldapp.com/docs/mcp/llms.txt). Server URL: https://run.outfieldapp.com/mcp

Logs an email interaction with one or more contacts. Forms cannot be attached.

Log an email interaction with one or more contacts. Forms cannot be attached. Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, not available to Viewer users
- Example prompts: "Log the pricing email I just sent to Jordan Rivera."

### Parameters

- `contact_ids` (integer[]; required): Contact IDs from search_contacts
- `title` (string; optional): Email subject or title
- `notes` (string; optional): Email body or notes
- `occurred_at` (string; optional; ISO 8601 datetime): When the email happened (ISO8601). Defaults to now. Cannot be in the future.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `organization_id` (integer; optional): Organization ID from get_user_profile. Omit to use the current organization. If the user names a team, call get_user_profile first and pass that id.

### Notes

- This records an email in Outfield. It does not send one.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_email",
    "arguments": {
      "contact_ids": [50442],
      "title": "Fall pricing sheet",
      "notes": "Sent the updated wholesale pricing and case pack details."
    }
  }
}
```

### Example response (`structuredContent`, illustrative data)

```json
{
  "id": 771204,
  "interaction_type": "email",
  "title": "Fall pricing sheet",
  "notes": "Sent the updated wholesale pricing and case pack details.",
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Jordan Rivera",
  "form_results": null,
  "reported_duration_seconds": null,
  "call_result": null,
  "due_at": null,
  "is_complete": null,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md)
