Audit log

Search audit log entries

POST
/api/v2/auditlog

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.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Query Parameters

before?integer

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

Formatint64
after?integer

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

Formatint64
q?string

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

Formatstring
limit?integer

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

Formatint64
member?string

A member ID that lets you filter audit log listings by the member who made the change. Repeat the parameter to filter by multiple members.

Formatstring
token?string

An access token ID that lets you filter audit log listings by the token that made the change. Repeat the parameter to filter by multiple tokens.

Formatstring

Request Body

application/json

[index: integer]?

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/auditlog" \  -H "Content-Type: application/json" \  -d '[    {      "effect": "allow"    }  ]'
{  "items": [    {      "_links": {        "property1": {          "href": "string",          "type": "string"        },        "property2": {          "href": "string",          "type": "string"        }      },      "_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",      "relatedFlag": {        "key": "string"      },      "relatedExperiment": {        "key": "string"      },      "relatedAIConfig": {        "key": "string"      },      "subject": {        "_links": {          "property1": {            "href": "string",            "type": "string"          },          "property2": {            "href": "string",            "type": "string"          }        },        "name": "string",        "avatarUrl": "string"      },      "member": {        "_links": {          "property1": {            "href": "string",            "type": "string"          },          "property2": {            "href": "string",            "type": "string"          }        },        "_id": "507f1f77bcf86cd799439011",        "email": "ariel@acme.com",        "firstName": "Ariel",        "lastName": "Flores"      },      "token": {        "_links": {          "property1": {            "href": "string",            "type": "string"          },          "property2": {            "href": "string",            "type": "string"          }        },        "_id": "string",        "name": "DevOps token",        "ending": "2345",        "serviceToken": false      },      "app": {        "_links": {          "property1": {            "href": "string",            "type": "string"          },          "property2": {            "href": "string",            "type": "string"          }        },        "_id": "string",        "isScim": true,        "name": "string",        "iconUrl": "string",        "maintainerName": "string",        "isAgent": true      },      "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": {          "property1": {            "href": "string",            "type": "string"          },          "property2": {            "href": "string",            "type": "string"          }        },        "name": "string",        "resource": "string"      }    }  ],  "_links": {    "property1": {      "href": "string",      "type": "string"    },    "property2": {      "href": "string",      "type": "string"    }  }}