---
updatedAt: 2026-05-27T10:26:40.000Z
agentTools:
  projectIndex: https://developers.smartrecruiters.com/llms.txt
---

# Download most recent report file

Use this endpoint to download the most recent report file for a specific report. The response contains report data in CSV format. In order to get a successful response, there have to be at least 1 successfully generated report file for the report.
### Etags
Along with the successful response, the `Etag` HTTP header is returned, containing ETag identifier of the report file. In order to save bandwidth resources, the `If-None-Match HTTP` header containing the recently retrieved report file ETag can be passed with the request. If there's no report file, that is newer than the one referred in the `If-None-Match` header, the API responds with HTTP `304 Not Modified` status code and does not provide content.
### Note
It is not recommended to attempt downloading large report files via Live Docs or Internet Browser. To get a large report file, use command line tools or native HTTP clients.


# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Reporting API",
    "description": "Reporting API",
    "contact": {
      "name": "SmartRecruiters",
      "url": "https://developers.smartrecruiters.com"
    },
    "version": "201804"
  },
  "servers": [
    {
      "url": "https://api.smartrecruiters.com/reporting-api/v201804"
    }
  ],
  "tags": [
    {
      "name": "reports",
      "description": "Reports Operations"
    }
  ],
  "paths": {
    "/reports/{reportId}/files/recent/data": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "Download most recent report file",
        "description": "Use this endpoint to download the most recent report file for a specific report. The response contains report data in CSV format. In order to get a successful response, there have to be at least 1 successfully generated report file for the report.\n### Etags\nAlong with the successful response, the `Etag` HTTP header is returned, containing ETag identifier of the report file. In order to save bandwidth resources, the `If-None-Match HTTP` header containing the recently retrieved report file ETag can be passed with the request. If there's no report file, that is newer than the one referred in the `If-None-Match` header, the API responds with HTTP `304 Not Modified` status code and does not provide content.\n### Note\nIt is not recommended to attempt downloading large report files via Live Docs or Internet Browser. To get a large report file, use command line tools or native HTTP clients.\n",
        "operationId": "downloadMostRecentReportFile",
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "description": "Report identifier",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "description": "Report file ETag to be compared with the most recent report file",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "ETag": {
                "description": "Report file ETag",
                "style": "simple",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Returned when there's no newer report file available."
          },
          "400": {
            "description": "Returned when the report ID is invalid or an invalid value for the If-Match/If-None-Match header was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Returned when a request was not authenticated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Returned when a caller is not authorized to download the report file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Returned when there is no successfully generated report file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "412": {
            "description": "Returned when the provided value for the If-Match header doesn't match."
          }
        },
        "security": [
          {
            "oauth": [
              "reporting_read"
            ]
          },
          {
            "key": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "required": [
          "code"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "key": {
        "type": "apiKey",
        "name": "x-smarttoken",
        "in": "header"
      },
      "oauth": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api.smartrecruiters.com/identity/oauth/token",
            "scopes": {
              "reporting_read": "Get analytics reports and download report files",
              "reporting_write": "Manage/execute analytics reports"
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://www.smartrecruiters.com/identity/oauth/allow",
            "tokenUrl": "https://api.smartrecruiters.com/identity/oauth/token",
            "scopes": {
              "reporting_read": "Get analytics reports and download report files",
              "reporting_write": "Manage/execute analytics reports"
            }
          }
        }
      }
    }
  }
}
```