Skip to Content

Download Reports


GET

/api/proof/downloadData


Try Me!

GET /api/proof/downloadData

Query Parameters

Response Schema

FieldTypeDescription

Summary

Downloads the file corresponding to the given company, file name and type. Must be used in conjunction with the Fetch Reports endpoint.


Description

The Download Reports API downloads the requested report (if it exists) to your browser.


Endpoint

GET /api/proof/downloadData

Request

This endpoint accepts three parameters: company_slug, file_name, and file_type

Parameters

ParametersRequiredTypeDescription
company_slugmandatorystringThe slug of the company you wish to search for
file_namemandatorystringName of the report
file_typemandatorystringFile type, in lowercase

Headers

This endpoint accepts a singular optional header.

HeaderRequiredDescription
AcceptoptionalDefaults to application/json, but needs to be application/pdf for the PDF to not get stuck in DOM rendering

Response Schema

Success - 200 OK

FileObject
Empty Response

If the requested file is not available, no download happens.


Error Codes & Response Types

404 Not Found

Returned when the requested file does not exist on the server.


500 Internal Server Error

Returned when an unexpected server-side error occurs.

Response Body
{ "detail" : "Internal server error" }
Typical Causes
  1. Unhandled runtime exception
  2. Application-level failure.
Last updated on