---
title: "Query Logs"
method: GET
path: "/api/v1/logs"
tags: ["Logs"]
---

# Query Logs

`GET /api/v1/logs`

List workflow execution logs with advanced filtering and cursor-based pagination. Supports filtering by workflow, trigger type, date range, duration, cost, and more.

## Query parameters

- `workspaceId` string, required
- `workflowIds` string
- `folderIds` string
- `triggers` string
- `level` string
- `startDate` string, date-time
- `endDate` string, date-time
- `executionId` string
- `minDurationMs` integer
- `maxDurationMs` integer
- `minCost` number
- `maxCost` number
- `model` string
- `details` string
- `includeTraceSpans` boolean
- `includeFinalOutput` boolean
- `limit` integer
- `cursor` string
- `order` string

## Response `200`

A paginated list of execution logs matching the filter criteria.

- object
  - `data` LogEntry[] — Array of log entries for the current page.
    - `id` string — Unique log entry identifier.
    - `workflowId` string — The workflow that was executed.
    - `executionId` string — Unique execution identifier for this run.
    - `level` string — Log severity. info for successful executions, error for failures.
    - `trigger` string — How the execution was triggered (e.g., api, manual, webhook, schedule, chat).
    - `startedAt` string, date-time — ISO 8601 timestamp when execution started.
    - `endedAt` string, date-time — ISO 8601 timestamp when execution completed.
    - `totalDurationMs` integer — Total execution duration in milliseconds.
    - `cost` object — Cost summary for this execution.
      - `total` number — Total cost of this execution in USD.
    - `files` object, nullable — File outputs produced during execution. null if no files were generated.
  - `nextCursor` string, nullable — Cursor for fetching the next page. null when there are no more results.
  - `limits` Limits — Rate limit and usage information included in every API response.
    - `workflowExecutionRateLimit` object — Current rate limit status for workflow executions.
      - `sync` RateLimitBucket — Rate limit status for a specific execution type.
        - `requestsPerMinute` integer — Maximum number of requests allowed per minute.
        - `maxBurst` integer — Maximum number of concurrent requests allowed in a burst.
        - `remaining` integer — Number of requests remaining in the current rate limit window.
        - `resetAt` string, date-time — ISO 8601 timestamp when the rate limit window resets.
      - `async` RateLimitBucket — Rate limit status for a specific execution type.
        - `requestsPerMinute` integer — Maximum number of requests allowed per minute.
        - `maxBurst` integer — Maximum number of concurrent requests allowed in a burst.
        - `remaining` integer — Number of requests remaining in the current rate limit window.
        - `resetAt` string, date-time — ISO 8601 timestamp when the rate limit window resets.
    - `usage` object — Current billing period usage and plan limits.
      - `currentPeriodCost` number — Total spend in the current billing period in USD.
      - `limit` number — Maximum allowed spend for the current billing period in USD.
      - `plan` string — Your current subscription plan (e.g., free, pro, team).
      - `isExceeded` boolean — Whether the usage limit has been exceeded. Executions may be blocked when true.

## Other responses

- `400` — Invalid request parameters. Check the details array for specific validation errors.
- `401` — Invalid or missing API key. Ensure the X-API-Key header is set with a valid key.
- `429` — Rate limit exceeded. Wait for the duration specified in the Retry-After header before retrying. The X-RateLimit-* headers accompany every response from an authenticated v1 request — success and error alike — and are omitted only when the request fails authentication, since no rate-limit bucket is consulted in that case.

---

[API](https://skmtc.dev/simstudioai/apis/sim-api.md) · [All operations](https://skmtc.dev/simstudioai/apis/sim-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/simstudioai/sim-api/revisions/66a471c5b1df/schema)
