Skip to main content
GET
/
api
/
v2
/
auditlog
List audit log entries
curl --request GET \
  --url https://app.launchdarkly.com/api/v2/auditlog \
  --header 'Authorization: <api-key>'
{
  "items": [
    {
      "_links": {},
      "_id": "1234a56b7c89d012345e678f",
      "_accountId": "1234a56b7c89d012345e678f",
      "date": "1654104600000",
      "accesses": [
        {
          "action": "<string>",
          "resource": "<string>"
        }
      ],
      "kind": "flag",
      "name": "Example feature flag",
      "description": "Example, turning on the flag for testing",
      "shortDescription": "Example, turning on the flag",
      "comment": "This is an automated test",
      "subject": {
        "_links": {},
        "name": "<string>",
        "avatarUrl": "<string>"
      },
      "member": {
        "_links": {},
        "_id": "507f1f77bcf86cd799439011",
        "email": "ariel@acme.com",
        "firstName": "Ariel",
        "lastName": "Flores"
      },
      "token": {
        "_links": {},
        "_id": "<string>",
        "name": "DevOps token",
        "ending": "2345",
        "serviceToken": false
      },
      "app": {
        "_links": {},
        "_id": "<string>",
        "isScim": true,
        "name": "<string>",
        "maintainerName": "<string>"
      },
      "titleVerb": "turned on the flag",
      "title": "<string>",
      "target": "[Ariel Flores](mailto:ariel@acme.com) turned on the flag [example-flag](https://app.launchdarkly.com/example-project/production/features/example-flag) in Production",
      "parent": {
        "_links": {},
        "name": "<string>",
        "resource": "<string>"
      }
    }
  ],
  "_links": {}
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Query Parameters

before
integer<int64>

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

after
integer<int64>

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

q
string<string>

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

limit
integer<int64>

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

spec
string<string>

A resource specifier that lets you filter audit log listings by resource

Response

Audit log entries response

items
object[]
required

An array of audit log entries

The location and content type of related resources