v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Audit log

Search audit log entries

Search your audit log entries. The query parameters let you restrict the results that return by date ranges, or a full-text search query. The request body lets you restrict the results that return by resource specifiers.

LaunchDarkly uses a resource specifier syntax to name resources or collections of resources. To learn more, read About the resource specifier syntax.

post/api/v2/auditlog

Query parameters

beforeinteger

A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred before the timestamp.

A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred before the timestamp.

afterinteger

A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred after the timestamp.

A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred after the timestamp.

qstring string

Text to search for. You can search for the full or partial name of the resource.

Text to search for. You can search for the full or partial name of the resource.

limitinteger

A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10.

A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10.

Request body

resourcesstring[]

Resource specifier strings

notResourcesstring[]

Targeted resources are the resources NOT in this list. The <code>resources</code> field must be empty to use this field.

actionsActionSpecifier[]

Actions to perform on a resource

notActionsActionSpecifier[]

Targeted actions are the actions NOT in this list. The <code>actions</code> field must be empty to use this field.

effect'allow' | 'deny' required

Whether this statement should allow or deny actions on the resources.

Example request

[
  {
    "resources": [
      "proj/*:env/*:flag/*;testing-tag"
    ],
    "actions": [
      "*"
    ],
    "effect": "allow"
  }
]

Response

Audit log entries response

_linksobject required

The location and content type of related resources

Example response

{
  "items": [
    {
      "_id": "1234a56b7c89d012345e678f",
      "_accountId": "1234a56b7c89d012345e678f",
      "name": "Example feature flag",
      "description": "Example, turning on the flag for testing",
      "shortDescription": "Example, turning on the flag",
      "comment": "This is an automated test",
      "member": {
        "_id": "507f1f77bcf86cd799439011",
        "email": "ariel@acme.com",
        "firstName": "Ariel",
        "lastName": "Flores"
      },
      "token": {
        "name": "DevOps token",
        "ending": "2345"
      },
      "titleVerb": "turned on the flag",
      "target": {
        "name": "Example flag name",
        "resources": [
          "proj/example-project:env/production:flag/example-flag"
        ]
      }
    }
  ]
}