# Get all files
Source: https://docs.file.ai/api-reference/files/get-all-files

> Get all files of the current organization and workspace.

get /prod/v1/files

Get all files of the current organization and workspace.

This endpoint is paginated. Use the `page` and `limit` query parameters to control pagination.

Alternatively, pass the `cursor` query parameter (empty for the first page) to use cursor pagination: the response envelope becomes `{ data, pagination: { limit, nextCursor, hasMore } }` and pages are stable under concurrent writes. Follow `nextCursor` until `hasMore` is false; keep the same sort and filter parameters for every page of a walk.

Use the optional `updatedAfter` query parameter to filter files that have been updated on or after the specified timestamp (ISO 8601 format).
Use the optional `createdAfter` query parameter to filter files that have been created on or after the specified timestamp (ISO 8601 format).
These filters are useful for batch processes that need to fetch only files modified or created since the last sync.

Use the optional `directoryId` query parameter to return only files that belong to the specified directory (or sub-directory). Files in nested descendants are not included; pass the sub-directory id directly to fetch its files.

`fileName` reflects the file's current display name: if the file has been renamed, this is the renamed name (with its original extension); otherwise it is the originally uploaded filename.
