Files
Get file
Read a file’s name, type, size and creation time.
GET
Returns a file’s metadata. To read its contents, use Get file text or Get file download.
You can read any file you have access to in Wordsmith, not only files you added through the API. A file that does not exist and a file you cannot read both return
404, so the response never reveals whether an id exists.
Authentication
Send an API key, or an OAuth access token with thefiles:read scope, as a bearer token in the Authorization header. files:write does not include files:read. A token without the scope gets 403 with "error": "insufficient_scope".
Path parameters
The file’s id, as the files endpoints and task
input_files and output_files return it.Response
The file’s sensitivity label from your organisation’s labelling system, such as Microsoft Purview:
provider, name (null when Wordsmith can’t name the label) and is_protected (the label encrypts the file). null when the file has no label.