---
title: "Get log"
method: GET
path: "/v1/logs/{log_id}"
tags: ["Logs"]
---

# Get log

`GET /v1/logs/{log_id}`

## Request

- Base URL: `https://api.markifact.com`
- URL: `https://api.markifact.com/v1/logs/{log_id}`
- Auth: HTTP bearer

Fetch a single log by ID.

## Path parameters

- `log_id` string, required

## Response `200`

Log returned.

- Log
  - `id` string, required: Log ID.
  - `operation_id` string, required: Markifact operation that ran.
  - `operation_version` integer, nullable
  - `status` 'success' | 'error' | 'skipped' | 'stop' | 'start', required
  - `source` LogSource, required
    - `type` 'mcp' | 'agent' | 'workflow', required: What ran the operation.
    - `id` string, nullable: Parent object ID: the MCP server, agent conversation, or workflow.
    - `run_id` string, nullable: Single execution ID. Set on workflow logs, null otherwise.
    - `name` string, nullable: Current parent name, falling back to the name captured at log time if the parent was deleted.
  - `user` LogUser, required
    - `id` string, nullable: Markifact user ID.
    - `email` string, nullable: Email of the team member who ran the operation.
  - `started_at` integer, required: Start time in Unix seconds.
  - `completed_at` integer, nullable: Completion time in Unix seconds. Null while the operation is still running.
  - `credits_used` integer, required
  - `cache_hit` boolean, required: Whether the result came from cache instead of the provider.
  - `input` unknown
  - `output` unknown
  - `metadata` object, required: Extra context. Keys depend on the source: node_id, node_label, and retry_attempts for workflows, tool_name for MCP.

## Other responses

- `401`: Invalid API key.
- `404`: Log not found, or older than your plan's history window.

---

[API](https://skmtc.dev/markifact/apis/markifact-api.md) · [All operations](https://skmtc.dev/markifact/apis/markifact-api/llms.txt) · [OpenAPI document](https://skmtc.dev/markifact/apis/markifact-api/revisions/24033d2ceea4?raw)
