---
title: "Get invalid JQL searches"
method: GET
path: "/rest/api/2/invalid-jqls-access-log"
tags: ["JQL"]
---

# Get invalid JQL searches

`GET /rest/api/2/invalid-jqls-access-log`

## Request

- Base URL: `https://your-domain.atlassian.net`
- URL: `https://your-domain.atlassian.net/rest/api/2/invalid-jqls-access-log`
- Auth: one of:
  - HTTP basic
  - OAuth 2 (authorization code, authorization URL `https://auth.atlassian.com/authorize`, token URL `https://auth.atlassian.com/oauth/token`, scopes: `manage:jira-configuration`)

Returns JQL searches that need updating because Jira can no longer support them. Use the entries to find affected saved filters and JQL used by apps, automations, scripts, or REST integrations.

Entries are ordered by creation time, newest first, and retained for three days. Pass the `nextPageToken` returned in a previous response to retrieve the next page. Results may be restricted to a user by external account ID.

**[Permissions](#permissions) required:** *Administer Jira* global permission.

## Query parameters

- `userAccountId` string
- `nextPageToken` string
- `maxResults` integer

## Response `200`

Returned when the request is successful.

- AuditPage
  - `entries` AuditEntry[]
    - `caller` string
    - `createdAt` string
    - `filterId` string
    - `jql` string
    - `requestUrl` string
    - `user` AuditUser
      - `accountId` string
      - `active` boolean
      - `avatarUrls` AuditUserAvatarUrls
        - `16x16` string, uri
        - `24x24` string, uri
        - `32x32` string, uri
        - `48x48` string, uri
      - `displayName` string
      - `key` string
      - `name` string
      - `self` string, uri
    - `userAgent` string
    - `validationMessage` string
  - `isLast` boolean
  - `nextPageToken` string
  - `nextPageURL` string

## Other responses

- `400`: Returned when `maxResults` is outside the permitted range or the next page token is invalid.
- `401`: Returned when the caller is not authenticated.
- `403`: Returned when the caller is not a Jira administrator or the site is on the Free plan.
- `404`: Returned when invalid JQL audit logging is not enabled for the site yet.

## Changes

- **2026-10-21** `5b336c497218`: 1 info
  - endpoint added
- **2026-10-19** `a8a031e0c9fb`: 1 breaking
  - api path removed without deprecation
- **2026-10-19** `778afa2ab689`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api/changes/rest/api/2/invalid-jqls-access-log/get.md)

---

[API](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api.md) - [All operations](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api/revisions/5b336c497218?raw)
