# Retrieve log

`logs_get`

One request: what was asked, what was answered and how long it took.

Needs the scope: `logs:read`

## Arguments

- `id` (string, required): The id of the item. Up to 64 characters.

## Returns

The answer comes back under `structuredContent`, with the same JSON as text in `content`. A call the API refuses comes back with `isError` set, and the code and the message under `structuredContent.error`. [MCP](https://opensend.sh/docs/mcp) shows how to connect a client.

- `object` ("log"): Always `log`.
- `id` (string): The id of the log entry.
- `method` (string): The HTTP verb of the request. One of: `GET`, `POST`, `PATCH`, `DELETE`.
- `path` (string): The path that was asked for.
- `status` (integer): The HTTP status of the answer.
- `outcome` (string): `success` for a 2xx answer, `client_error` for 4xx, `server_error` for 5xx. One of: `success`, `client_error`, `server_error`.
- `durationMs` (number): How long the request took, in milliseconds.
- `keyId` (string | null): The id of the API key that made it, or `null`.
- `userAgent` (string): What the client called itself.
- `requestId` (string): The id the answer carried in its request id header. Empty on an older entry.
- `error` (object | null): Why the request failed, or `null` when it did not.
- `error.type` (string): The kind of error, as in the answer.
- `error.code` (string): The code of the error, as in the answer.
- `error.message` (string): What the answer said was wrong.
- `resource` (object | null): What a request that changed something made or changed, or `null`.
- `resource.object` (string): The kind of thing, such as `email` or `domain`.
- `resource.id` (string): Its id.
- `tool` (string | null): The tool an MCP request called, such as `emails_send`, or `null`.
- `createdAt` (string): When the request was made.

## Example

MCP:

```json
{
  "name": "logs_get",
  "arguments": {
    "id": "log_07"
  }
}
```

Answer, under structuredContent:

```json
{
  "object": "log",
  "id": "log_07",
  "method": "POST",
  "path": "/emails",
  "status": 422,
  "outcome": "client_error",
  "durationMs": 9,
  "keyId": "key_01",
  "userAgent": "curl/8.7.1",
  "requestId": "req_07",
  "error": {
    "type": "validation_error",
    "code": "email_domain_missing",
    "message": "The from address must be on a domain this workspace has added and verified."
  },
  "resource": null,
  "tool": null,
  "createdAt": "2026-11-27T09:28:00.000Z"
}
```
