Files

Files are objects that represent a file hosted on Increase's servers. The file may have been uploaded by you (for example, when uploading a check image) or it may have been created by Increase (for example, an autogenerated statement PDF). If you need to download a File, create a File Link.

The File object
{ "created_at": "2020-01-31T23:59:59Z", "description": "2022-05 statement for checking account", "direction": "from_increase", "filename": "statement.pdf", "id": "file_makxrc67oh9l6sg7w9yc", "idempotency_key": null, "mime_type": "application/pdf", "purpose": "increase_statement", "type": "file" }
Attributes
created_at
string

The time the File was created.

description
string
Nullable

A description of the File.

direction
enum

Whether the File was generated by Increase or by you and sent to Increase.

filename
string
Nullable

The filename that was provided upon upload or generated by Increase.

id
string

The File's identifier.

idempotency_key
string
Nullable

The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about idempotency.

mime_type
string

The MIME type of the file.

purpose
enum

What the File will be used for. We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully.

type
string

A constant representing the object's type. For this resource it will always be file.

List Files
curl \ --url "${INCREASE_URL}/files" \ -H "Authorization: Bearer ${INCREASE_API_KEY}"
Parameters
cursor
string

Return the page of entries after this one.

limit
integer

Limit the size of the list that is returned. The default (and maximum) is 100 objects.

created_at.after
string

Return results after this ISO 8601 timestamp.

created_at.before
string

Return results before this ISO 8601 timestamp.

created_at.on_or_after
string

Return results on or after this ISO 8601 timestamp.

created_at.on_or_before
string

Return results on or before this ISO 8601 timestamp.

purpose.in
array of strings

Filter Files for those with the specified purpose or purposes. For GET requests, this should be encoded as a comma-delimited string, such as ?in=one,two,three.

idempotency_key
string

Filter records to the one with the specified idempotency_key you chose for that object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about idempotency.

200 character maximum
Create a File

To upload a file to Increase, you'll need to send a request of Content-Type multipart/form-data. The request should contain the file you would like to upload, as well as the parameters for creating a file.

curl -X "POST" \ --url "${INCREASE_URL}/files" \ -H "Authorization: Bearer ${INCREASE_API_KEY}" \ -H "Content-Type: multipart/form-data" \ -F file="@tax_form.pdf" \ -F purpose=check_image_front
Parameters
description
string

The description you choose to give the File.

200 character maximum
file
string
Required

The file contents. This should follow the specifications of RFC 7578 which defines file transfers for the multipart/form-data protocol.

purpose
enum
Required

What the File will be used for in Increase's systems.

Retrieve a File
curl \ --url "${INCREASE_URL}/files/file_makxrc67oh9l6sg7w9yc" \ -H "Authorization: Bearer ${INCREASE_API_KEY}"
Parameters
file_id
string
Required

The identifier of the File.