Files
Files
Get a file
GET
A file's details. Its content is downloaded through the file proxy.
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.
file_id*stringThe file.
Format
uuidregion*RegionsRegion of the file: besg (Europe) or usnv (United States)
Value in
"besg""usnv"OK
application/json- response
A file stored in the workspace (a knowledge base document, a genie attachment, an upload)
file_id*File Idname*Namemime_type*string|nullsize_bytes*integer|nulltags*array<string>source*string|nullsource_ref*|Id of the resource the file belongs to, null when it belongs to none
created_at*string|nullregion*Regioncurl -X GET 'https://api.stacksync.com/v1/workspaces/0/files/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg'{ "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>"}