---
title: "Fetch a log by its ID."
method: GET
path: "/v3/logs/{id}"
tags: ["Logs"]
---

# Fetch a log by its ID.

`GET /v3/logs/{id}`

Required permission: `logs_read`

## Path parameters

- `id` string, required

## Response `200`

Request for log successful.

- Log
  - `id` string — ID of the log.
  - `name` string — Name of the log.
  - `color` string — Color of the log. The color will always be one of the following (green being the default): green, lightgreen, lime, yellow, orange, deeporange, red, pink, purple, deeppurple, blue, lightblue
  - `environmentName` string — Environment name this log is in or "Other" if not in an environment. "Other" is chosen over null to mimic the experience in the elmah.io UI.
  - `disabled` boolean — Returns true if the log is currently disabled. A log can be disabled either through the API or in the elmah.io UI.

## Other responses

- `401` — API key not valid or no access to resource.
- `402` — Tried to call the logs API but the trial expired.
- `404` — Log not found.
- `429` — A maximum of 500 requests per minute and 3600 requests per hour are permitted

---

[API](https://skmtc.net/elmah/apis/elmah-io-api.md) · [All operations](https://skmtc.net/elmah/apis/elmah-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elmah/elmah-io-api/versions/8e9c6e56e4fa/schema)
