Get File
Changed onRequest
- Base URLhttps://api.modernfi.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
Your institution's ModernFi ID; allows institution statements only. Provide exactly one of account_id or institution_id.
Type of the account id. Institution accounts ids are external ids and come from the institution.
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.
Changes
- info
added the new optional
queryrequest parameterinstitution_id - info
the
queryrequest parameteraccount_idbecame optional - info
queryrequest parameteraccount_idlist-of-types was widened by adding typesnull
- info