# API logs You can explore your API request and response data from the past 30 days in the Dashboard. You can use API logs to troubleshoot your integration. For example, to: - Search logs by payment ID. - Filter for status codes. - Investigate key fields. To view API logs in the Dashboard, you must have one of the following [user roles](https://www.checkout.com/docs/business-operations/use-the-dashboard/manage-users/user-permissions.md#Pre-defined_roles): - Admin - A custom role with the `View API logs for all entities` permission --- ## View API logs To view API logs, follow these steps: 1. Sign in to the [Dashboard](https://dashboard.checkout.com). 2. Select _Developers_ in the left navigation bar and open the _API Logs_ tab. 3. Select the log you want to view. The log opens in the side panel, which contains key log data. For example, the request ID, host, path, request elapsed time, request body, and response body. You can search and filter your logs by: - Payment ID – To identify a specific log associated with a specific payment ID. For example, `pay_tb4f46qcj6runb3pmbsrrdqd74`. - Date – To find logs within a specific date range. - Status code – To find logs that returned a response from a specific HTTP status code category. For example, `4xx` responses. For each log, you can view the full corresponding API request and response. > **Note** > > Sensitive data and personally identifiable information (PII) are masked in API logs.