{
  "info": {
    "_postman_id": "690478cf-7d88-4850-9265-14386d201941",
    "name": "Tyk Dashboard Admin Additional Permissions AuditLogs API",
    "description": "For Tyk On-Premises installations only, the Dashboard Admin API has two endpoints and is used to set up and provision a Tyk Dashboard instance without the command line.\n\nIn order to use the Dashboard Admin API, you'll need to get the `admin_secret` value from your Tyk Dashboard configurations.\n\nThe secret you set should then be sent along as a header with each Dashboard Admin API Request in order for it to be successful:\n\n```\nadmin-auth: <your-secret>\n```",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T03:21:31.000Z",
    "updatedAt": "2026-07-28T03:21:31.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-690478cf-7d88-4850-9265-14386d201941"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "audit-logs",
          "item": [
            {
              "name": "List audit logs",
              "id": "dd72c5df-dfa8-49d6-b688-b6f24e95b85a",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/api/audit-logs?p=<integer>&user=<string>&action=<string>&ip=<string>&method=<string>&status=<integer>&url=<string>&from_date=<string>&to_date=<string>",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "api",
                    "audit-logs"
                  ],
                  "query": [
                    {
                      "description": "Use p query parameter to say which page you want returned. The size of the page is determined by the configuration option page_size of dashboard.",
                      "key": "p",
                      "value": "<integer>"
                    },
                    {
                      "description": "Filters audit logs to show only actions performed by the specified user. This parameter allows you to focus on the activity of a particular user across the system.",
                      "key": "user",
                      "value": "<string>"
                    },
                    {
                      "description": "Filters audit logs based on the specific action performed by users. This parameter allows you to focus on particular types of activities within the system.",
                      "key": "action",
                      "value": "<string>"
                    },
                    {
                      "description": "Filters audit logs based on the IP address from which the action originated. This parameter allows you to focus on activities from specific network locations or to investigate actions from particular IP addresses.",
                      "key": "ip",
                      "value": "<string>"
                    },
                    {
                      "description": "Filters audit logs based on the HTTP method used in the API request. This parameter allows you to focus on specific types of operations performed on the API.",
                      "key": "method",
                      "value": "<string>"
                    },
                    {
                      "description": "Filters audit logs based on the HTTP status code returned by the API in response to the request. This parameter allows you to focus on specific outcomes of API interactions.",
                      "key": "status",
                      "value": "<integer>"
                    },
                    {
                      "description": "Filters audit logs based on the specific URL path of the API endpoint that was accessed. This parameter allows you to focus on actions performed on particular resources or sections of your API.",
                      "key": "url",
                      "value": "<string>"
                    },
                    {
                      "description": "Specifies the start date for the audit log search. If not provided, the search will include records from the earliest available date. Format DD-MM-YYY.",
                      "key": "from_date",
                      "value": "<string>"
                    },
                    {
                      "description": "Specifies the end date for the audit log search. If not provided, the search will include records up to the current date and time. Format DD-MM-YYY.",
                      "key": "to_date",
                      "value": "<string>"
                    }
                  ]
                },
                "description": "Retrieve audit logs from database"
              },
              "response": [
                {
                  "id": "c494622a-6565-44c3-9255-66e167c8ea24",
                  "name": "Audit Logs retrieved successfully",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Admin-Auth",
                        "value": "<API Key>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/api/audit-logs?p=<integer>&user=<string>&action=<string>&ip=<string>&method=<string>&status=<integer>&url=<string>&from_date=<string>&to_date=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "api",
                        "audit-logs"
                      ],
                      "query": [
                        {
                          "description": "Use p query parameter to say which page you want returned. The size of the page is determined by the configuration option page_size of dashboard.",
                          "key": "p",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs to show only actions performed by the specified user. This parameter allows you to focus on the activity of a particular user across the system.",
                          "key": "user",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the specific action performed by users. This parameter allows you to focus on particular types of activities within the system.",
                          "key": "action",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the IP address from which the action originated. This parameter allows you to focus on activities from specific network locations or to investigate actions from particular IP addresses.",
                          "key": "ip",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP method used in the API request. This parameter allows you to focus on specific types of operations performed on the API.",
                          "key": "method",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP status code returned by the API in response to the request. This parameter allows you to focus on specific outcomes of API interactions.",
                          "key": "status",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs based on the specific URL path of the API endpoint that was accessed. This parameter allows you to focus on actions performed on particular resources or sections of your API.",
                          "key": "url",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the start date for the audit log search. If not provided, the search will include records from the earliest available date. Format DD-MM-YYY.",
                          "key": "from_date",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the end date for the audit log search. If not provided, the search will include records up to the current date and time. Format DD-MM-YYY.",
                          "key": "to_date",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"pages\": \"<integer>\",\n  \"audit_logs\": [\n    {\n      \"_id\": \"<string>\",\n      \"req_id\": \"<string>\",\n      \"org_id\": \"<string>\",\n      \"date\": \"<string>\",\n      \"timestamp\": \"<integer>\",\n      \"ip\": \"<string>\",\n      \"user\": \"<string>\",\n      \"action\": \"<string>\",\n      \"method\": \"<string>\",\n      \"url\": \"<string>\",\n      \"status\": \"<integer>\"\n    },\n    {\n      \"_id\": \"<string>\",\n      \"req_id\": \"<string>\",\n      \"org_id\": \"<string>\",\n      \"date\": \"<string>\",\n      \"timestamp\": \"<integer>\",\n      \"ip\": \"<string>\",\n      \"user\": \"<string>\",\n      \"action\": \"<string>\",\n      \"method\": \"<string>\",\n      \"url\": \"<string>\",\n      \"status\": \"<integer>\"\n    }\n  ]\n}",
                  "createdAt": "2026-07-28T03:21:32.000Z",
                  "updatedAt": "2026-07-28T03:21:32.000Z",
                  "uid": "35240-c494622a-6565-44c3-9255-66e167c8ea24"
                },
                {
                  "id": "eb6a6af3-f0af-48d1-9bb2-14612f5aa2a2",
                  "name": "Bad Request",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Admin-Auth",
                        "value": "<API Key>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/api/audit-logs?p=<integer>&user=<string>&action=<string>&ip=<string>&method=<string>&status=<integer>&url=<string>&from_date=<string>&to_date=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "api",
                        "audit-logs"
                      ],
                      "query": [
                        {
                          "description": "Use p query parameter to say which page you want returned. The size of the page is determined by the configuration option page_size of dashboard.",
                          "key": "p",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs to show only actions performed by the specified user. This parameter allows you to focus on the activity of a particular user across the system.",
                          "key": "user",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the specific action performed by users. This parameter allows you to focus on particular types of activities within the system.",
                          "key": "action",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the IP address from which the action originated. This parameter allows you to focus on activities from specific network locations or to investigate actions from particular IP addresses.",
                          "key": "ip",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP method used in the API request. This parameter allows you to focus on specific types of operations performed on the API.",
                          "key": "method",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP status code returned by the API in response to the request. This parameter allows you to focus on specific outcomes of API interactions.",
                          "key": "status",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs based on the specific URL path of the API endpoint that was accessed. This parameter allows you to focus on actions performed on particular resources or sections of your API.",
                          "key": "url",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the start date for the audit log search. If not provided, the search will include records from the earliest available date. Format DD-MM-YYY.",
                          "key": "from_date",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the end date for the audit log search. If not provided, the search will include records up to the current date and time. Format DD-MM-YYY.",
                          "key": "to_date",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"example\": {\n    \"Message\": \"could not retrieve audit records\",\n    \"Status\": \"Error\"\n  }\n}",
                  "createdAt": "2026-07-28T03:21:32.000Z",
                  "updatedAt": "2026-07-28T03:21:32.000Z",
                  "uid": "35240-eb6a6af3-f0af-48d1-9bb2-14612f5aa2a2"
                },
                {
                  "id": "ed0e022c-b135-4b12-9092-77d539c13c67",
                  "name": "Unauthorized",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Admin-Auth",
                        "value": "<API Key>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/api/audit-logs?p=<integer>&user=<string>&action=<string>&ip=<string>&method=<string>&status=<integer>&url=<string>&from_date=<string>&to_date=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "api",
                        "audit-logs"
                      ],
                      "query": [
                        {
                          "description": "Use p query parameter to say which page you want returned. The size of the page is determined by the configuration option page_size of dashboard.",
                          "key": "p",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs to show only actions performed by the specified user. This parameter allows you to focus on the activity of a particular user across the system.",
                          "key": "user",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the specific action performed by users. This parameter allows you to focus on particular types of activities within the system.",
                          "key": "action",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the IP address from which the action originated. This parameter allows you to focus on activities from specific network locations or to investigate actions from particular IP addresses.",
                          "key": "ip",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP method used in the API request. This parameter allows you to focus on specific types of operations performed on the API.",
                          "key": "method",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP status code returned by the API in response to the request. This parameter allows you to focus on specific outcomes of API interactions.",
                          "key": "status",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs based on the specific URL path of the API endpoint that was accessed. This parameter allows you to focus on actions performed on particular resources or sections of your API.",
                          "key": "url",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the start date for the audit log search. If not provided, the search will include records from the earliest available date. Format DD-MM-YYY.",
                          "key": "from_date",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the end date for the audit log search. If not provided, the search will include records up to the current date and time. Format DD-MM-YYY.",
                          "key": "to_date",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"example\": {\n    \"Message\": \"Not authorised\",\n    \"Status\": \"Error\"\n  }\n}",
                  "createdAt": "2026-07-28T03:21:32.000Z",
                  "updatedAt": "2026-07-28T03:21:32.000Z",
                  "uid": "35240-ed0e022c-b135-4b12-9092-77d539c13c67"
                },
                {
                  "id": "ec1b921a-fa04-4cd0-b9bb-03a3debc2ca7",
                  "name": "Forbidden",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: apikey",
                        "key": "Admin-Auth",
                        "value": "<API Key>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/api/audit-logs?p=<integer>&user=<string>&action=<string>&ip=<string>&method=<string>&status=<integer>&url=<string>&from_date=<string>&to_date=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "api",
                        "audit-logs"
                      ],
                      "query": [
                        {
                          "description": "Use p query parameter to say which page you want returned. The size of the page is determined by the configuration option page_size of dashboard.",
                          "key": "p",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs to show only actions performed by the specified user. This parameter allows you to focus on the activity of a particular user across the system.",
                          "key": "user",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the specific action performed by users. This parameter allows you to focus on particular types of activities within the system.",
                          "key": "action",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the IP address from which the action originated. This parameter allows you to focus on activities from specific network locations or to investigate actions from particular IP addresses.",
                          "key": "ip",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP method used in the API request. This parameter allows you to focus on specific types of operations performed on the API.",
                          "key": "method",
                          "value": "<string>"
                        },
                        {
                          "description": "Filters audit logs based on the HTTP status code returned by the API in response to the request. This parameter allows you to focus on specific outcomes of API interactions.",
                          "key": "status",
                          "value": "<integer>"
                        },
                        {
                          "description": "Filters audit logs based on the specific URL path of the API endpoint that was accessed. This parameter allows you to focus on actions performed on particular resources or sections of your API.",
                          "key": "url",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the start date for the audit log search. If not provided, the search will include records from the earliest available date. Format DD-MM-YYY.",
                          "key": "from_date",
                          "value": "<string>"
                        },
                        {
                          "description": "Specifies the end date for the audit log search. If not provided, the search will include records up to the current date and time. Format DD-MM-YYY.",
                          "key": "to_date",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"example\": {\n    \"Message\": \"access denied: You do not have permission to access  /api/audit-logs\",\n    \"Status\": \"Error\"\n  }\n}",
                  "createdAt": "2026-07-28T03:21:32.000Z",
                  "updatedAt": "2026-07-28T03:21:32.000Z",
                  "uid": "35240-ec1b921a-fa04-4cd0-b9bb-03a3debc2ca7"
                }
              ],
              "createdAt": "2026-07-28T03:21:32.000Z",
              "updatedAt": "2026-07-28T03:21:32.000Z",
              "uid": "35240-dd72c5df-dfa8-49d6-b688-b6f24e95b85a"
            }
          ],
          "id": "c2c8b00a-e8bf-4f0a-8ab7-96ba1ab11795",
          "createdAt": "2026-07-28T03:21:32.000Z",
          "updatedAt": "2026-07-28T03:21:32.000Z",
          "uid": "35240-c2c8b00a-e8bf-4f0a-8ab7-96ba1ab11795"
        }
      ],
      "id": "69209778-7d6d-4fb7-95b5-4d38c29e8642",
      "createdAt": "2026-07-28T03:21:32.000Z",
      "updatedAt": "2026-07-28T03:21:32.000Z",
      "uid": "35240-69209778-7d6d-4fb7-95b5-4d38c29e8642"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "Admin-Auth",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost/"
    }
  ]
}