List files

GEThttps://api.floconnector.com/v1/media
Scope
media.read
Rate limit
the key's read budget, 120 a minute

Newest first, in one page of up to 200 files. There is no cursor: total counts every match, so narrow with the filters when it is larger than the page. A key sees every file in the workspace. usage reports the storage pool against the plan and what happens when it is full.

Query parameters

stringoptional

Search text, matched against file names and source labels, ignoring case.

Max length 200

enumoptional

Only files of this broad type. document covers Office files and text.

enumoptional

Where the files came from: an upload, a tool call (a vendor download), or the dashboard.

"root" | string (uuid)optional

A folder id for files in that folder, or root for files in no folder. Omit for everywhere.

booleanoptional

1 for pinned files only, 0 for unpinned only.

booleanoptional

1 for files visible to everyone in the workspace.

string (date-time)optional

Only files that arrived after this ISO 8601 time.

integeroptional

How many, newest first. Default 50, at most 200.

Range 1 to 200

Responses

200Success
filesarray of object

One page of files.

ShowHide 19 fields of each item
idstring

The file's id. A path takes this or the media number.

mediainteger

The file's media number in this workspace: what chats and tools call it.

namestring

The file name, extension included.

typestring

The content type (MIME), e.g. image/jpeg. Read from the file's bytes where they can settle it.

kindenum

The file's broad type, read from its content type. document covers Office files and text.

imagevideopdfdocumentother
sizeinteger

Size in bytes.

pinnedboolean

Whether the file is pinned. A pinned file is never removed to make room.

pinned_atstringnullable

When the file was pinned, ISO 8601. Null when it is not pinned.

sharedboolean

Whether every member of the workspace can see and use the file. Not a public link.

shared_atstringnullable

When the file was opened to the workspace, ISO 8601. Null when it is not shared.

sourcestring

Where the file came from, written for people, e.g. "Uploaded with link: site photos".

source_kindenum

How the file arrived: upload (the uploader), tool (a tool call, such as a vendor download) or dashboard (the Media page).

uploadtooldashboard
ownerobjectnullable

The member who owns the file. Null when it has no owner, as with a file uploaded under an API key.

ShowHide 3 fields
idstring

The member's user id.

namestringnullable

Their display name. Null when they have not set one.

emailstring

Their email address.

folderobjectnullable

The folder the file is in. Null at the root of Media.

ShowHide 2 fields
idstring

The folder's id.

namestring

The folder's name.

mineboolean

Whether the caller owns the file. Always false for an API key: a key owns nothing and acts for the workspace.

can_manageboolean

Whether the caller may rename, move or delete the file. Pinning and sharing also need their own permission.

arrived_atstring

When the file arrived in Media, ISO 8601.

linksinteger

How many live links the file has: made, not revoked and not expired.

thumb_urlstringnullable

A short-lived URL of a preview image: the file's preview frame when it has one, or the file itself when it is an image. Null when there is neither. It lasts minutes, so do not store it.

totalinteger

How many files match the filters, which can be more than the page holds.

usageobject

The workspace's storage pool against its plan, and what happens when the pool is full.

ShowHide 12 fields
planstring

The plan's name.

pool_bytesinteger

Bytes in the pool: the combined size of every file the workspace holds.

max_pool_bytesintegernullable

The pool's size on this plan, in bytes. Null means unlimited.

max_file_bytesinteger

The largest single file the plan accepts, in bytes.

max_daily_bytesintegernullable

Bytes the plan lets the workspace bring in per day, counted from midnight UTC. Null means no daily limit.

today_bytesinteger

Bytes brought in since midnight UTC.

filesinteger

How many files the workspace holds.

pinned_filesinteger

How many of them are pinned.

pinned_bytesinteger

Bytes held by pinned files.

when_fullenum

What happens when the pool is full: make_room deletes the oldest unpinned files until the new one fits, stop refuses new files.

make_roomstop
paidboolean

Whether the plan is a paid one. Links that last 7 days or never expire need it.

nextobjectnullable

The next plan up and its Media limits. Null on the top plan.

ShowHide 4 fields
namestring

The plan's name.

max_pool_bytesintegernullable

Its pool size in bytes. Null means unlimited.

max_file_bytesinteger

The largest single file it accepts, in bytes.

max_daily_bytesintegernullable

Its daily limit in bytes. Null means none.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

401unauthorized: no key, or an unknown, revoked or expired key.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

404not_found: the thing is not in this workspace.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

Errors lists every error code and what to do about it.