> ## Documentation Index
> Fetch the complete documentation index at: /docs/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 via the Mailofly API.

### Path Parameters

**id** `string` *required*

The unique identifier of the log entry.

### Response

**data** `object`

**id** `string`

Log entry ID.

**method** `string`

HTTP method (GET, POST, etc.).

**path** `string`

Endpoint request path.

**statusCode** `number`

HTTP response status code.

**durationMs** `number`

Execution time in milliseconds.

**ipAddress** `string`

Client IP address.

**userAgent** `string`

Client user agent.

**createdAt** `string`

ISO 8601 timestamp.

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

```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"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.