Files

Returns the files with the given IDs, newest first — fetch a batch in one request instead of retrieving each file individually. Only files you created are returned; IDs that do not exist, or that another credential created, are omitted. For a batch larger than one page, follow page_info with the same file_ids to walk the rest.

get/files

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

file_ids, string[] required

The files to return, each prefixed file_. Repeat the parameter to pass several, up to 250 per request. Batches of up to 100 answer in one page by default; larger batches page at up to 100 per response.

[
  "file_xxxxxxxxxxxxx"
]
order, 'created_at'

The field to sort by.

direction, 'asc' | 'desc'

The sort direction.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

files listed

object required
data, File[] required
page_info, object required

Example response

{
  "data": [
    {
      "content_type": "application/pdf",
      "created_at": "2026-01-01T12:00:00.000Z",
      "filename": "evidence.pdf",
      "id": "file_xxxxxxxxxxxxxx",
      "multipart_chunk_size": 5242880,
      "multipart_upload_id": "upload-id",
      "multipart_upload_urls": [
        {
          "part_number": 1,
          "url": "https://whop-assets-example.s3.amazonaws.com/uploads/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/application.pdf"
        }
      ],
      "object": "file",
      "size": 9670,
      "upload_headers": {},
      "upload_status": "pending",
      "upload_url": "https://whop-assets-example.s3.amazonaws.com/uploads/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/application.pdf",
      "url": "https://whop-assets-example.s3.amazonaws.com/uploads/audio/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "visibility": "private"
    }
  ],
  "page_info": {
    "has_previous_page": true,
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • info

      added the required property data/items/optimized_url to the response with the status

    • info

      added the required property data/items/blurhash to the response with the status

    • info

      added the required property data/items/duration_seconds to the response with the status

    4 more changes in this revision