Get File
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Query parameters
Account that owns the file; allows the account’s statements and its institution’s statements. Provide exactly one of account_id or institution_id.
Your institution’s ModernFi ID; allows institution statements only. Provide exactly one of account_id or institution_id.
Set to INSTITUTION when account_id is your bank’s own account number (the sweep or return account number) instead of the ModernFi account ID. It never accepts an institution ID; to get institution statements, pass institution_id instead.
Form of the response. ‘presigned_url’ (default) returns a JSON object with a short-lived presigned download URL. ‘file’ streams the file back directly as raw bytes (Content-Type derived from the file, e.g. application/pdf or text/csv), for callers that cannot fetch presigned URLs.
Response
When response_type=file, the file is streamed back directly as raw bytes, with a Content-Type derived from the file (e.g. application/pdf or text/csv). Otherwise a JSON object containing a presigned_url is returned.