{
  "info": {
    "_postman_id": "99f64219-eb89-44ab-aed8-02e888b0f7e1",
    "name": "PostHog actions event_filter API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T11:05:28.000Z",
    "updatedAt": "2026-07-28T11:05:29.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-99f64219-eb89-44ab-aed8-02e888b0f7e1"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "environments",
          "item": [
            {
              "name": "{project_id}",
              "item": [
                {
                  "name": "event_filter",
                  "item": [
                    {
                      "name": "metrics",
                      "item": [
                        {
                          "name": "totals",
                          "item": [
                            {
                              "name": "event filter metrics totals retrieve",
                              "id": "47438d1e-d172-4e5e-a06c-f88e8bbe2f48",
                              "protocolProfileBehavior": {
                                "disableBodyPruning": true
                              },
                              "request": {
                                "auth": {
                                  "type": "bearer",
                                  "bearer": [
                                    {
                                      "key": "token",
                                      "value": "{{bearerToken}}",
                                      "type": "string"
                                    }
                                  ]
                                },
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/metrics/totals/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":project_id",
                                    "event_filter",
                                    "metrics",
                                    "totals",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "id": "6467577a-ebf2-4094-9f5d-d34faa3e1c4d",
                                      "key": "project_id",
                                      "value": "<string>",
                                      "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                    }
                                  ]
                                },
                                "description": "Single event filter per team.\nGET  /event_filter/ \u2014 returns the config (or null if not yet created)\nPOST /event_filter/ \u2014 creates or updates the config (upsert)\nGET  /event_filter/metrics/ \u2014 time-series metrics\nGET  /event_filter/metrics/totals/ \u2014 aggregate totals"
                              },
                              "response": [
                                {
                                  "id": "e156ada4-ab7e-4070-9215-6fac9ed8e47c",
                                  "name": "New Response",
                                  "originalRequest": {
                                    "method": "GET",
                                    "header": [
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "url": {
                                      "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/metrics/totals/",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "environments",
                                        ":project_id",
                                        "event_filter",
                                        "metrics",
                                        "totals",
                                        ""
                                      ],
                                      "variable": [
                                        {
                                          "key": "project_id"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "OK",
                                  "code": 200,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    }
                                  ],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": "{\n  \"totals\": {\n    \"Excepteur_9\": \"<integer>\",\n    \"consecteture\": \"<integer>\"\n  }\n}",
                                  "createdAt": "2026-07-28T11:05:29.000Z",
                                  "updatedAt": "2026-07-28T11:05:29.000Z",
                                  "uid": "35240-e156ada4-ab7e-4070-9215-6fac9ed8e47c"
                                }
                              ],
                              "createdAt": "2026-07-28T11:05:29.000Z",
                              "updatedAt": "2026-07-28T11:05:29.000Z",
                              "uid": "35240-47438d1e-d172-4e5e-a06c-f88e8bbe2f48"
                            }
                          ],
                          "id": "ad37fe2b-7b2a-48d8-bc4c-27446b89befc",
                          "createdAt": "2026-07-28T11:05:29.000Z",
                          "updatedAt": "2026-07-28T11:05:29.000Z",
                          "uid": "35240-ad37fe2b-7b2a-48d8-bc4c-27446b89befc"
                        },
                        {
                          "name": "event filter metrics retrieve",
                          "id": "185f9011-bdb0-4891-9476-66399aaa3a52",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "auth": {
                              "type": "bearer",
                              "bearer": [
                                {
                                  "key": "token",
                                  "value": "{{bearerToken}}",
                                  "type": "string"
                                }
                              ]
                            },
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/metrics/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":project_id",
                                "event_filter",
                                "metrics",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "0721c7ce-d41f-4de1-9a75-ff2510726799",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                }
                              ]
                            },
                            "description": "Single event filter per team.\nGET  /event_filter/ \u2014 returns the config (or null if not yet created)\nPOST /event_filter/ \u2014 creates or updates the config (upsert)\nGET  /event_filter/metrics/ \u2014 time-series metrics\nGET  /event_filter/metrics/totals/ \u2014 aggregate totals"
                          },
                          "response": [
                            {
                              "id": "0abc539c-2d86-42b4-8b38-2f2845f9f292",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  },
                                  {
                                    "description": "Added as a part of security scheme: bearer",
                                    "key": "Authorization",
                                    "value": "Bearer <token>"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/metrics/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":project_id",
                                    "event_filter",
                                    "metrics",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"labels\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"series\": [\n    {\n      \"name\": \"<string>\",\n      \"values\": [\n        \"<integer>\",\n        \"<integer>\"\n      ]\n    },\n    {\n      \"name\": \"<string>\",\n      \"values\": [\n        \"<integer>\",\n        \"<integer>\"\n      ]\n    }\n  ]\n}",
                              "createdAt": "2026-07-28T11:05:29.000Z",
                              "updatedAt": "2026-07-28T11:05:29.000Z",
                              "uid": "35240-0abc539c-2d86-42b4-8b38-2f2845f9f292"
                            }
                          ],
                          "createdAt": "2026-07-28T11:05:29.000Z",
                          "updatedAt": "2026-07-28T11:05:29.000Z",
                          "uid": "35240-185f9011-bdb0-4891-9476-66399aaa3a52"
                        }
                      ],
                      "id": "c200e055-4090-46d7-9b48-be3e7fd10a2e",
                      "createdAt": "2026-07-28T11:05:29.000Z",
                      "updatedAt": "2026-07-28T11:05:29.000Z",
                      "uid": "35240-c200e055-4090-46d7-9b48-be3e7fd10a2e"
                    },
                    {
                      "name": "event filter retrieve",
                      "id": "83fd077f-ab25-43fe-a603-b204ab5c1c78",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "auth": {
                          "type": "bearer",
                          "bearer": [
                            {
                              "key": "token",
                              "value": "{{bearerToken}}",
                              "type": "string"
                            }
                          ]
                        },
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "api",
                            "environments",
                            ":project_id",
                            "event_filter",
                            ""
                          ],
                          "variable": [
                            {
                              "id": "88618bd3-9919-4b63-97f2-a0810987a316",
                              "key": "project_id",
                              "value": "<string>",
                              "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                            }
                          ]
                        },
                        "description": "Returns the event filter config for the team, or null if not yet created."
                      },
                      "response": [
                        {
                          "id": "4b052654-330f-4803-8a7a-cc1d21c38e53",
                          "name": "New Response",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":project_id",
                                "event_filter",
                                ""
                              ],
                              "variable": [
                                {
                                  "key": "project_id"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"created_at\": \"<dateTime>\",\n  \"id\": \"<uuid>\",\n  \"updated_at\": \"<dateTime>\",\n  \"mode\": \"dry_run\",\n  \"filter_tree\": {\n    \"nullable\": true,\n    \"description\": \"Boolean expression tree. Nodes: {\\\"type\\\": \\\"and\\\"|\\\"or\\\", \\\"children\\\": [...]}, {\\\"type\\\": \\\"not\\\", \\\"child\\\": {...}}, {\\\"type\\\": \\\"condition\\\", \\\"field\\\": \\\"event_name\\\"|\\\"distinct_id\\\", \\\"operator\\\": \\\"exact\\\"|\\\"contains\\\", \\\"value\\\": \\\"<string>\\\"}\"\n  },\n  \"test_cases\": {\n    \"description\": \"Test events to validate the filter. Each: {\\\"event_name\\\": \\\"...\\\", \\\"distinct_id\\\": \\\"...\\\", \\\"expected_result\\\": \\\"drop\\\"|\\\"ingest\\\"}\"\n  }\n}",
                          "createdAt": "2026-07-28T11:05:29.000Z",
                          "updatedAt": "2026-07-28T11:05:29.000Z",
                          "uid": "35240-4b052654-330f-4803-8a7a-cc1d21c38e53"
                        }
                      ],
                      "createdAt": "2026-07-28T11:05:29.000Z",
                      "updatedAt": "2026-07-28T11:05:29.000Z",
                      "uid": "35240-83fd077f-ab25-43fe-a603-b204ab5c1c78"
                    },
                    {
                      "name": "event filter create",
                      "id": "30ace889-5cea-4301-a33f-4fa3bfdafdcc",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "auth": {
                          "type": "bearer",
                          "bearer": [
                            {
                              "key": "token",
                              "value": "{{bearerToken}}",
                              "type": "string"
                            }
                          ]
                        },
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"created_at\": \"<dateTime>\",\n  \"id\": \"<uuid>\",\n  \"updated_at\": \"<dateTime>\",\n  \"mode\": \"dry_run\",\n  \"filter_tree\": {\n    \"nullable\": true,\n    \"description\": \"Boolean expression tree. Nodes: {\\\"type\\\": \\\"and\\\"|\\\"or\\\", \\\"children\\\": [...]}, {\\\"type\\\": \\\"not\\\", \\\"child\\\": {...}}, {\\\"type\\\": \\\"condition\\\", \\\"field\\\": \\\"event_name\\\"|\\\"distinct_id\\\", \\\"operator\\\": \\\"exact\\\"|\\\"contains\\\", \\\"value\\\": \\\"<string>\\\"}\"\n  },\n  \"test_cases\": {\n    \"description\": \"Test events to validate the filter. Each: {\\\"event_name\\\": \\\"...\\\", \\\"distinct_id\\\": \\\"...\\\", \\\"expected_result\\\": \\\"drop\\\"|\\\"ingest\\\"}\"\n  }\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "api",
                            "environments",
                            ":project_id",
                            "event_filter",
                            ""
                          ],
                          "variable": [
                            {
                              "id": "7f34cca5-9a25-4320-b778-755c1a3b9a3d",
                              "key": "project_id",
                              "value": "<string>",
                              "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                            }
                          ]
                        },
                        "description": "Create or update the event filter config."
                      },
                      "response": [
                        {
                          "id": "bbc4bcb2-4542-448a-bc43-5023d6458554",
                          "name": "New Response",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"created_at\": \"<dateTime>\",\n  \"id\": \"<uuid>\",\n  \"updated_at\": \"<dateTime>\",\n  \"mode\": \"dry_run\",\n  \"filter_tree\": {\n    \"nullable\": true,\n    \"description\": \"Boolean expression tree. Nodes: {\\\"type\\\": \\\"and\\\"|\\\"or\\\", \\\"children\\\": [...]}, {\\\"type\\\": \\\"not\\\", \\\"child\\\": {...}}, {\\\"type\\\": \\\"condition\\\", \\\"field\\\": \\\"event_name\\\"|\\\"distinct_id\\\", \\\"operator\\\": \\\"exact\\\"|\\\"contains\\\", \\\"value\\\": \\\"<string>\\\"}\"\n  },\n  \"test_cases\": {\n    \"description\": \"Test events to validate the filter. Each: {\\\"event_name\\\": \\\"...\\\", \\\"distinct_id\\\": \\\"...\\\", \\\"expected_result\\\": \\\"drop\\\"|\\\"ingest\\\"}\"\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:project_id/event_filter/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":project_id",
                                "event_filter",
                                ""
                              ],
                              "variable": [
                                {
                                  "key": "project_id"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"created_at\": \"<dateTime>\",\n  \"id\": \"<uuid>\",\n  \"updated_at\": \"<dateTime>\",\n  \"mode\": \"dry_run\",\n  \"filter_tree\": {\n    \"nullable\": true,\n    \"description\": \"Boolean expression tree. Nodes: {\\\"type\\\": \\\"and\\\"|\\\"or\\\", \\\"children\\\": [...]}, {\\\"type\\\": \\\"not\\\", \\\"child\\\": {...}}, {\\\"type\\\": \\\"condition\\\", \\\"field\\\": \\\"event_name\\\"|\\\"distinct_id\\\", \\\"operator\\\": \\\"exact\\\"|\\\"contains\\\", \\\"value\\\": \\\"<string>\\\"}\"\n  },\n  \"test_cases\": {\n    \"description\": \"Test events to validate the filter. Each: {\\\"event_name\\\": \\\"...\\\", \\\"distinct_id\\\": \\\"...\\\", \\\"expected_result\\\": \\\"drop\\\"|\\\"ingest\\\"}\"\n  }\n}",
                          "createdAt": "2026-07-28T11:05:29.000Z",
                          "updatedAt": "2026-07-28T11:05:29.000Z",
                          "uid": "35240-bbc4bcb2-4542-448a-bc43-5023d6458554"
                        }
                      ],
                      "createdAt": "2026-07-28T11:05:29.000Z",
                      "updatedAt": "2026-07-28T11:05:29.000Z",
                      "uid": "35240-30ace889-5cea-4301-a33f-4fa3bfdafdcc"
                    }
                  ],
                  "id": "95a89d58-e6fb-4c45-bcf3-1742f41cae3b",
                  "createdAt": "2026-07-28T11:05:29.000Z",
                  "updatedAt": "2026-07-28T11:05:29.000Z",
                  "uid": "35240-95a89d58-e6fb-4c45-bcf3-1742f41cae3b"
                }
              ],
              "id": "80db4745-90ac-4149-b5fb-8856c4c3c467",
              "createdAt": "2026-07-28T11:05:29.000Z",
              "updatedAt": "2026-07-28T11:05:29.000Z",
              "uid": "35240-80db4745-90ac-4149-b5fb-8856c4c3c467"
            }
          ],
          "id": "6fd646a1-6e2f-408d-8eee-769875c846f1",
          "createdAt": "2026-07-28T11:05:29.000Z",
          "updatedAt": "2026-07-28T11:05:29.000Z",
          "uid": "35240-6fd646a1-6e2f-408d-8eee-769875c846f1"
        }
      ],
      "id": "dd45b220-e6a4-40d5-aadc-47d506103797",
      "createdAt": "2026-07-28T11:05:29.000Z",
      "updatedAt": "2026-07-28T11:05:29.000Z",
      "uid": "35240-dd45b220-e6a4-40d5-aadc-47d506103797"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "/"
    }
  ]
}