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

# Get run details & logs

> Retrieve step-by-step execution traces, inputs, outputs, error messages, and logs for a single run.

Retrieves an in-depth execution trace for a single workflow run. Provides per-step inputs, evaluated expressions, outputs, error stack traces, and console execution logs.

### Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `runId` | `string` | **Yes** | Unique identifier of the execution run (`run_...`). |

### cURL Example

```bash theme={null}
curl "https://posttu.com/api/v1/workflow/runs/run_999" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### Response Example

```json theme={null}
{
  "data": {
    "id": "run_999",
    "workflowId": "wkf_abc123",
    "workflowName": "Weekly Tech Digest",
    "status": "SUCCESS",
    "durationMs": 1420,
    "startedAt": "2026-07-29T12:00:00.000Z",
    "finishedAt": "2026-07-29T12:00:01.420Z",
    "errorMessage": null,
    "triggerPayload": {
      "item": {
        "title": "New AI Release",
        "description": "Powerful new model launched today."
      }
    },
    "steps": [
      {
        "id": "step_1",
        "name": "Generate Summary",
        "actionName": "ai_generate_text",
        "status": "SUCCESS",
        "durationMs": 950,
        "retryCount": 0,
        "input": {
          "prompt": "Summarize for Twitter: New AI Release..."
        },
        "output": {
          "text": "🔥 New AI Release launched today! Check out the details here."
        }
      },
      {
        "id": "step_2",
        "name": "Post to Twitter",
        "actionName": "channel_post",
        "status": "SUCCESS",
        "durationMs": 470,
        "retryCount": 0,
        "input": {
          "channelId": "chan_tw_999",
          "text": "🔥 New AI Release launched today! Check out the details here."
        },
        "output": {
          "postId": "post_tw_555",
          "status": "SCHEDULED"
        }
      }
    ],
    "logs": [
      {
        "time": "2026-07-29T12:00:00.100Z",
        "level": "INFO",
        "stepId": "step_1",
        "message": "Calling OpenAI API model gpt-4o..."
      }
    ]
  },
  "success": true
}
```


## OpenAPI

````yaml openapi.json GET /api/v1/workflow/runs/{runId}
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/workflow/runs/{runId}:
    get:
      tags:
        - Workflow
      summary: Get run details
      parameters:
        - schema:
            type: string
            description: Run ID
            example: run_789def
          required: true
          description: Run ID
          name: runId
          in: path
      responses:
        '200':
          description: Run details with logs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowRunDetails'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WorkflowRunDetails:
      allOf:
        - $ref: '#/components/schemas/WorkflowRun'
        - type: object
          properties:
            logs:
              type: array
              items:
                $ref: '#/components/schemas/WorkflowRunLog'
              description: Run execution logs
    WorkflowRun:
      type: object
      properties:
        id:
          type: string
          description: Run ID
          example: run_def456
        status:
          type: string
          enum:
            - PENDING
            - RUNNING
            - COMPLETED
            - FAILED
            - PAUSED
            - CANCELED
          description: Workflow run status
          example: COMPLETED
        startedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: Start timestamp
          example: '2024-01-20T10:00:00.000Z'
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: Completion timestamp
          example: '2024-01-20T10:05:00.000Z'
        workflowId:
          type: string
          description: Workflow ID
          example: wkf_abc123
        workflowName:
          type: string
          description: Workflow name
          example: Daily Post Automation
        input:
          type: object
          additionalProperties: {}
          description: Run input payload
        output:
          type: object
          additionalProperties: {}
          description: Run output
        error:
          type:
            - string
            - 'null'
          description: Error message if failed
      required:
        - id
        - status
        - workflowId
    WorkflowRunLog:
      type: object
      properties:
        id:
          type: string
          description: Log ID
        stepId:
          type: string
          description: Step ID
        stepName:
          type: string
          description: Step name
        status:
          type: string
          enum:
            - PENDING
            - RUNNING
            - COMPLETED
            - FAILED
            - PAUSED
            - CANCELED
          description: Workflow run status
          example: COMPLETED
        message:
          type: string
          description: Log message
        output:
          description: Step output
        error:
          type:
            - string
            - 'null'
          description: Error details
        timestamp:
          type: string
          format: date-time
          description: Log timestamp
      required:
        - id
        - stepId
        - stepName
        - status
        - timestamp
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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