# List all ignored errors

Lists every error that is dropped at ingest, including ones with no stored occurrences left.

New occurrences of these errors aren't ingested, and you aren't billed for them. An error is added when you [ignore it](https://betterstack.com/docs/errors/api/errors/update/) without `ignore_next_count`.

[endpoint]
base_url = "https://errors.betterstack.com"
path = "/api/v2/applications/{application_id}/ignored-errors"
method = "GET"

[[path_param]]
name = "application_id"
description = "The ID of the application."
required = true
type = "integer"

[[query_param]]
name = "page"
description = "The page number to return, starting with `1`."
required = false
type = "integer"

[[query_param]]
name = "per_page"
description = "Number of results per page. Defaults to `50`, maximum `250`."
required = false
type = "integer"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns a paginated list of ignored errors, in the order they were ignored.'''
body = '''{
  "data": [
    {
      "id": "6f1c2b9a8e4d7f3012ab45cd",
      "type": "ignored_error",
      "attributes": {
        "pattern": "6f1c2b9a8e4d7f3012ab45cd",
        "comment": "TypeError: Cannot read properties of undefined (reading 'id')"
      }
    }
  ],
  "pagination": {
    "first": "https://errors.betterstack.com/api/v2/applications/123/ignored-errors?page=1",
    "last": "https://errors.betterstack.com/api/v2/applications/123/ignored-errors?page=1",
    "prev": null,
    "next": null
  }
}'''

[[response]]
status = 401
description = '''Unauthorized'''
body = '''{
  "errors": "Invalid authentication"
}'''

[[response]]
status = 404
description = '''Your team has no application with the given ID.'''
body = '''{
  "errors": "Resource with the provided ID was not found"
}'''

[[response]]
status = 422
description = '''Returned when `page` is invalid.'''
body = '''{
  "errors": "Sorry, some values are incorrect",
  "invalid_values": {
    "page": "must be an integer"
  }
}'''
[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "Pattern of the ignored error, used as `{id}` in [Remove an ignored error](https://betterstack.com/docs/errors/api/ignored-errors/delete/)."

[[param]]
name = "type"
type = "string"
description = "Always `ignored_error`."

[[param]]
name = "attributes.pattern"
type = "string"
description = "Pattern of the error group, the same as `id`."

[[param]]
name = "attributes.comment"
type = "string or null"
description = "Note on the error, usually its type and message, or `null`."

[[param]]
name = "pagination.first"
type = "string"
description = "The URL of the first page. Read more about [pagination](https://betterstack.com/docs/errors/api/getting-api-token/#pagination)."

[[param]]
name = "pagination.last"
type = "string"
description = "The URL of the last page."

[[param]]
name = "pagination.prev"
type = "string or null"
description = "The URL of the previous page, or `null` on the first page."

[[param]]
name = "pagination.next"
type = "string or null"
description = "The URL of the next page, or `null` on the last page."
[/params]

#### Example cURL

```shell
[label Example]
curl --request GET \
  --url https://errors.betterstack.com/api/v2/applications/123/ignored-errors \
  --header "Authorization: Bearer $TOKEN"
```
