> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Log

> Retrieve complete request and response payload details for an API or email delivery log entry.

Inspect full request headers, request bodies, response statuses, and execution timings for an API key transaction or mail transmission.

### Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the log entry.
</ParamField>

### Response

<ResponseField name="data" type="object">
  <ResponseField name="id" type="string">Log entry ID.</ResponseField>
  <ResponseField name="method" type="string">HTTP method (GET, POST, etc.).</ResponseField>
  <ResponseField name="path" type="string">Endpoint request path.</ResponseField>
  <ResponseField name="statusCode" type="number">HTTP response status code.</ResponseField>
  <ResponseField name="durationMs" type="number">Execution time in milliseconds.</ResponseField>
  <ResponseField name="ipAddress" type="string">Client IP address.</ResponseField>
  <ResponseField name="userAgent" type="string">Client user agent.</ResponseField>
  <ResponseField name="createdAt" type="string">ISO 8601 timestamp.</ResponseField>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.mailofly.com/api/v1/logs/log_98765 \
    -H "Authorization: Bearer mf_live_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "id": "log_98765",
      "method": "POST",
      "path": "/v1/emails",
      "statusCode": 200,
      "durationMs": 48,
      "ipAddress": "198.51.100.42",
      "userAgent": "mailofly-node/1.0.0",
      "createdAt": "2026-09-11T14:02:15Z"
    }
  }
  ```
</ResponseExample>


## Related topics

- [List Logs](/api/logs/list-logs.md)
- [Retrieve Event](/api/webhooks/retrieve-event.md)
- [Retrieve Attachment](/api/emails/retrieve-attachment.md)
- [Retrieve Metrics](/api/emails/retrieve-metrics.md)
- [Retrieve Contact](/api/contacts/get-contact.md)
