Skip to main content
API Reference
Cards
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.

Events
Your application can listen to webhooks about this resource. All of the events about Files will have the category "file.created" .
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}"
Returns a list response :
{
  "data": [
    { /* File object */ },
    { /* File object */ }
    /* ... */
  ],
  "next_cursor": "v57w5d",
}
Parameters
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.

Between 1 and 200 characters
More
cursor
string
limit
integer
created_at.after
string
created_at.before
string
created_at.on_or_after
string
created_at.on_or_before
string
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.

Between 1 and 200 characters
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.

More about Files.