Files
Files
List files
GET
The files of the workspace in a region, newest first.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
region*RegionsRegion whose files are listed: besg (Europe) or usnv (United States)
Value in
"besg""usnv"search?|Only files whose name contains this text
Default
nulllimit?LimitMaximum number of files returned, at most 100
Range
1 <= value <= 100Default
50cursor?|next_cursor of the previous page; absent for the first page
Default
nullOK
application/json- response
data*array<>has_more*Has MoreWhether more files may follow this page: request the next one with cursor = next_cursor
next_cursor*|Pass as cursor to get the next page; null on the last page
curl -X GET 'https://api.stacksync.com/v1/workspaces/0/files?region=besg'{ "data": [ { "file_id": "<file_id>", "name": "<name>", "mime_type": "<mime_type>", "size_bytes": 0, "tags": [ "<tags>" ], "source": "<source>", "source_ref": "<source_ref>", "created_at": "<created_at>", "region": "<region>" } ], "has_more": false, "next_cursor": "<next_cursor>"}