---
title: "Get elogs of given scan id"
method: GET
path: "/v1/scans/{scan_id}/error_log"
tags: ["elog"]
---

# Get elogs of given scan id

`GET /v1/scans/{scan_id}/error_log`

## Query parameters

- `host` string
- `template` string
- `matched` string
- `time` string, date-time
- `search` string
- `error` string
- `next_page_token` string
- `template_severity` string

## Headers

- `X-Team-Id` string

## Response `200`

OK

- object
  - `logs` ScanLogResp[], required
    - `target` string, required
    - `template_id` string, required
    - `matched` boolean, required
    - `error` string
    - `timestamp` string, required
    - `severity` string
    - `event` string
    - `vuln_hash` string
  - `next_page_token` string, required

## Other responses

- `400` — Example response
- `401` — Example response
- `500` — Example response
- `default` — Example response

## Changes

- **2025-10-28** `c9df54e2fb2c` — 1 info
  - endpoint added
- **2025-08-13** `c41cd7ae7718` — 1 breaking
  - api path removed without deprecation
- **2024-09-22** `407b73d9ce28` — 4 info
  - added the new optional `header` request parameter `X-Team-Id`
  - added the optional property `logs/items/event` to the response with the `200` status
  - added the optional property `logs/items/severity` to the response with the `200` status
  - added the optional property `logs/items/vuln_hash` to the response with the `200` status
- **2024-04-19** `ba8a20839440` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/scans/:scan_id/error_log/get.md)

---

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