---
title: "Get Email Log"
method: GET
path: "/api/v1/logs/email/{thread_id}"
tags: ["logs"]
---

# Get Email Log

`GET /api/v1/logs/email/{thread_id}`

A thread header + its full ordered message history.

## Path parameters

- `thread_id` string, uuid, required

## Response `200`

Successful Response

- EmailThreadDetail — Thread header + the full ordered back-and-forth.
  - `id` string, uuid, required
  - `tenant_id` string, uuid, required
  - `email_account_id` string, uuid, required
  - `customer_profile_id` string, uuid, nullable
  - `subject` string, nullable
  - `status` string, required
  - `source` string, required
  - `guest_email` string, nullable
  - `guest_name` string, nullable
  - `message_count` integer, required
  - `started_at` string, date-time, nullable
  - `last_message_at` string, date-time, nullable
  - `booking_intent` boolean, required
  - `booking_made` boolean, required
  - `booking_value_cents` integer, nullable
  - `booking_value_currency` string, nullable
  - `booking_outcome_set_at` string, date-time, nullable
  - `disposition` string, nullable
  - `outcome_agent_ref` string, nullable
  - `review_status` string, required
  - `outcome` string, nullable
  - `contact_source` string, nullable
  - `local_hour_of_day` integer, nullable
  - `local_day_of_week` integer, nullable
  - `primary_property_id` string, uuid, nullable
  - `primary_property_name` string, nullable
  - `booking_intent_evidence` string, nullable
  - `stay_link_status` string
  - `linked_stay` LinkedStayRead — The stay a thread was tied to, and how. Carries ``match_method`` because an unexplained link is not auditable: an operator correcting a wrong link needs to know whether it came from a quoted reference or a model reading a surname.
    - `booking_record_id` string, uuid, required
    - `reservation_id` string, required
    - `property_name` string, required
    - `checkin` string, date, required
    - `checkout` string, date, required
    - `guest_name` string, nullable
    - `source` string, nullable
    - `match_method` string, required
  - `messages` EmailMessageDetail[]
    - `id` string, uuid, required
    - `direction` string, required
    - `from_address` string, nullable
    - `to_addresses` string[], nullable
    - `cc_addresses` string[], nullable
    - `sent_at` string, date-time, nullable
    - `subject` string, nullable
    - `body_raw` string, nullable
    - `body_clean` string, nullable
    - `is_automated` boolean, required
    - `is_internal` boolean, required
    - `attachments` object[], nullable
    - `sequence` integer, required
    - `booking_ref_override` string, nullable
    - `booking_ref_override_at` string, date-time, nullable
  - `booking_groups` MessageBookingGroupRead[]
    - `ordinal` integer, required
    - `reference` string, nullable
    - `message_ids` string[]

## Other responses

- `404` — Email thread not found
- `422` — Validation Error

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/c0f54348e251/schema)
