---
title: "Get logs"
method: GET
path: "/logs"
tags: ["Log"]
---

# Get logs

`GET /logs`

Use this endpoint to retrieve HTTP request logs occured in the Oneflow account.

## Query parameters

- `offset` integer
- `limit` integer
- `filter[created_time]` string
- `filter[request_method]` string
- `filter[response_code]` string
- `filter[integration_key]` string
- `filter[request_id]` string

## Headers

- `x-oneflow-api-token` string, required

## Response `200`

Returns the list of request logs.

- object — A list of request logs in an account.
  - `_links` object — Links to related endpoints.
    - `comments` object
      - `href` string, nullable
    - `contracts` object
      - `href` string, nullable
    - `contract` object
      - `href` string, nullable
    - `create` object
      - `href` string, nullable
    - `data_field` object
      - `href` string, nullable
    - `data_fields` object
      - `href` string, nullable
    - `events` object
      - `href` string, nullable
    - `event` object
      - `href` string, nullable
    - `files` object
      - `href` string, nullable
    - `file` object
      - `href` string, nullable
    - `next` object
      - `href` string, nullable
    - `parties` object
      - `href` string, nullable
    - `party` object
      - `href` string, nullable
    - `previous` object
      - `href` string, nullable
    - `publish` object
      - `href` string, nullable
    - `self` object
      - `href` string, nullable
    - `template_types` object
      - `href` string, nullable
    - `template_type` object
      - `href` string, nullable
    - `template` object
      - `href` string, nullable
    - `templates` object
      - `href` string, nullable
    - `workspaces` object
      - `href` string, nullable
    - `workspace` object
      - `href` string, nullable
    - `playbooks` object
      - `href` string, nullable
  - `count` integer, required
  - `data` object[], required
    - `api_version` integer, required
    - `integration_key` string, required
    - `request_body` object, nullable, required
    - `request_duration` integer, required
    - `request_endpoint` string, required
    - `request_headers` object, nullable, required
    - `request_id` string, required
    - `request_method` string, required
    - `request_path` string, required
    - `request_time` string, datetime, required
    - `response_body` object, nullable, required
    - `response_code` integer, required

## Other responses

- `400` — Invalid format or content of the request.
- `401` — The API token or the user email is invalid.
- `404` — A required entity is missing.

---

[API](https://skmtc.net/oneflow/apis/public-api-for-oneflow.md) · [All operations](https://skmtc.net/oneflow/apis/public-api-for-oneflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneflow/public-api-for-oneflow/versions/0e73a45dec15/schema)
