{
  "info": {
    "_postman_id": "61616f2c-ac33-4552-871a-534b44c79372",
    "name": "Workspace Events API",
    "description": "Retrieve audit events and manage asynchronous event queries for a Jira or\nConfluence workspace.\n\nA workspace is identified by a URL-encoded workspace ARI. Jira Connect\nauthentication is supported with the `READ` scope. Confluence Connect\nauthentication is not supported.\n\nApplication-generated errors use the `PublicApiError` schema. Errors\ngenerated by gateway or edge infrastructure before a request reaches this\nservice are governed by those infrastructure contracts.\n",
    "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
  },
  "item": [
    {
      "name": "Event actions",
      "description": "Published event-action metadata.",
      "item": [
        {
          "name": "Get event actions",
          "request": {
            "url": {
              "protocol": "{{protocol}}",
              "host": "{{host}}",
              "path": "{{basePath}}audit-log/v1/workspaces/:workspaceId/event-actions",
              "query": [],
              "variable": []
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept-Language",
                "value": "{{Accept-Language}}",
                "description": "A single BCP 47 language tag used to localize display content, for\nexample `de-DE`. Omit the header to use US English. Weighted language\nlists and quality values are not negotiated.\n",
                "disabled": true
              },
              {
                "description": "",
                "disabled": false,
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "description": "Returns the event actions available for the workspace. The application\nis inferred from the workspace ARI supplied in the request path.\n",
            "auth": {
              "type": "basic",
              "basic": {
                "username": "{{username}}",
                "password": "{{apiToken}}"
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Events",
      "description": "Synchronous workspace event retrieval.",
      "item": [
        {
          "name": "Get workspace events",
          "request": {
            "url": {
              "protocol": "{{protocol}}",
              "host": "{{host}}",
              "path": "{{basePath}}audit-log/v1/workspaces/:workspaceId/events",
              "query": [
                {
                  "key": "from",
                  "value": "{{from}}",
                  "disabled": true,
                  "description": "Earliest event time, as Unix epoch milliseconds or an ISO-8601 timestamp."
                },
                {
                  "key": "to",
                  "value": "{{to}}",
                  "disabled": true,
                  "description": "Latest event time, as Unix epoch milliseconds or an ISO-8601 timestamp."
                },
                {
                  "key": "action",
                  "value": "{{action}}",
                  "disabled": true,
                  "description": "Event action identifier. Repeat the query parameter to request more\nthan one action.\n"
                },
                {
                  "key": "actors",
                  "value": "{{actors}}",
                  "disabled": true,
                  "description": "A non-repeatable, URL-percent-encoded JSON array of actor objects.\nObjects are ORed; populated properties within one object are ANDed and\nmatched exactly.\n"
                },
                {
                  "key": "ip",
                  "value": "{{ip}}",
                  "disabled": true,
                  "description": "Actor IP address. Repeat the query parameter for up to 10 addresses."
                },
                {
                  "key": "locations",
                  "value": "{{locations}}",
                  "disabled": true,
                  "description": "A non-repeatable, URL-percent-encoded JSON array of location objects.\nObjects are ORed; populated properties within one object are ANDed and\nmatched exactly.\n"
                },
                {
                  "key": "q",
                  "value": "{{q}}",
                  "disabled": true,
                  "description": "Attribute-based search that matches the complete input against context\nattribute values.\n"
                },
                {
                  "key": "cursor",
                  "value": "{{cursor}}",
                  "disabled": true,
                  "description": "Opaque pagination cursor returned by a previous request."
                },
                {
                  "key": "limit",
                  "value": "{{limit}}",
                  "disabled": true,
                  "description": "Maximum number of resources to return."
                }
              ],
              "variable": []
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept-Language",
                "value": "{{Accept-Language}}",
                "description": "A single BCP 47 language tag used to localize display content, for\nexample `de-DE`. Omit the header to use US English. Weighted language\nlists and quality values are not negotiated.\n",
                "disabled": true
              },
              {
                "description": "",
                "disabled": false,
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "description": "Returns a cursor-paginated page of events for a Jira or Confluence\nworkspace. Actor and location objects are ORed within their arrays,\nwhile properties within one object are ANDed. Other repeated values\nwithin one filter are ORed, and different filters are ANDed.\n",
            "auth": {
              "type": "basic",
              "basic": {
                "username": "{{username}}",
                "password": "{{apiToken}}"
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Event queries",
      "description": "Asynchronous workspace event-query lifecycle.",
      "item": [
        {
          "name": "List event queries",
          "request": {
            "url": {
              "protocol": "{{protocol}}",
              "host": "{{host}}",
              "path": "{{basePath}}audit-log/v1/workspaces/:workspaceId/event-queries",
              "query": [
                {
                  "key": "cursor",
                  "value": "{{cursor}}",
                  "disabled": true,
                  "description": "Opaque pagination cursor returned by a previous request."
                },
                {
                  "key": "limit",
                  "value": "{{limit}}",
                  "disabled": true,
                  "description": "Maximum number of event queries to return."
                }
              ],
              "variable": []
            },
            "method": "GET",
            "header": [
              {
                "description": "",
                "disabled": false,
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "description": "Returns event queries visible to the caller in the workspace.",
            "auth": {
              "type": "basic",
              "basic": {
                "username": "{{username}}",
                "password": "{{apiToken}}"
              }
            }
          },
          "response": []
        },
        {
          "name": "Create an event query",
          "request": {
            "url": {
              "protocol": "{{protocol}}",
              "host": "{{host}}",
              "path": "{{basePath}}audit-log/v1/workspaces/:workspaceId/event-queries",
              "query": [],
              "variable": []
            },
            "method": "POST",
            "header": [
              {
                "description": "",
                "disabled": false,
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "description": "Creates and queues an asynchronous workspace event query. The `from`\nand `to` filters must either both be supplied or both be omitted.\n",
            "auth": {
              "type": "basic",
              "basic": {
                "username": "{{username}}",
                "password": "{{apiToken}}"
              }
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"filters\": {\n    \"from\": 1785542400000,\n    \"to\": 1785628800000,\n    \"action\": [\n      \"project_updated\"\n    ],\n    \"actors\": [\n      {\n        \"id\": \"712020:abc123\",\n        \"name\": \"Example User\",\n        \"email\": \"example@atlassian.com\"\n      }\n    ],\n    \"q\": \"PROJECT-123\",\n    \"ip\": [\n      \"203.0.113.10\"\n    ],\n    \"locations\": [\n      {\n        \"city\": \"Atlanta\",\n        \"regionName\": \"Georgia\",\n        \"countryName\": \"United States\"\n      }\n    ]\n  }\n}"
            }
          },
          "response": []
        },
        {
          "name": "Get an event query",
          "request": {
            "url": {
              "protocol": "{{protocol}}",
              "host": "{{host}}",
              "path": "{{basePath}}audit-log/v1/workspaces/:workspaceId/event-queries/:queryId",
              "query": [],
              "variable": []
            },
            "method": "GET",
            "header": [
              {
                "description": "",
                "disabled": false,
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "description": "Returns the current status and details of an event query.",
            "auth": {
              "type": "basic",
              "basic": {
                "username": "{{username}}",
                "password": "{{apiToken}}"
              }
            }
          },
          "response": []
        },
        {
          "name": "Get event-query results",
          "request": {
            "url": {
              "protocol": "{{protocol}}",
              "host": "{{host}}",
              "path": "{{basePath}}audit-log/v1/workspaces/:workspaceId/event-queries/:queryId/results",
              "query": [
                {
                  "key": "cursor",
                  "value": "{{cursor}}",
                  "disabled": true,
                  "description": "Opaque pagination cursor returned by a previous request."
                },
                {
                  "key": "limit",
                  "value": "{{limit}}",
                  "disabled": true,
                  "description": "Maximum number of resources to return."
                }
              ],
              "variable": []
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept-Language",
                "value": "{{Accept-Language}}",
                "description": "A single BCP 47 language tag used to localize display content, for\nexample `de-DE`. Omit the header to use US English. Weighted language\nlists and quality values are not negotiated.\n",
                "disabled": true
              },
              {
                "description": "",
                "disabled": false,
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "description": "Returns a page of results for a completed event query. While the query\nis queued or in progress, the response is `202 Accepted` with a\n`Retry-After` header.\n",
            "auth": {
              "type": "basic",
              "basic": {
                "username": "{{username}}",
                "password": "{{apiToken}}"
              }
            }
          },
          "response": []
        },
        {
          "name": "Cancel an event query",
          "request": {
            "url": {
              "protocol": "{{protocol}}",
              "host": "{{host}}",
              "path": "{{basePath}}audit-log/v1/workspaces/:workspaceId/event-queries/:queryId/cancel",
              "query": [],
              "variable": []
            },
            "method": "POST",
            "header": [],
            "description": "Cancels an event query that has not reached a terminal state.",
            "auth": {
              "type": "basic",
              "basic": {
                "username": "{{username}}",
                "password": "{{apiToken}}"
              }
            }
          },
          "response": []
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "protocol",
      "name": "Protocol",
      "description": "The HTTP Protocol that should be used for this REST API.",
      "type": "string",
      "value": "https"
    },
    {
      "key": "host",
      "name": "Host",
      "description": "The HTTP host that should be used for this REST API.",
      "type": "string",
      "value": "api.atlassian.com"
    },
    {
      "key": "basePath",
      "name": "Base Path",
      "description": "The path, after the host, of the base of the REST API.",
      "type": "string",
      "value": ""
    }
  ]
}