Get files uploaded by a user for Chat.

post/getchatfiles

Get files uploaded by a user for Chat.

SecurityBearerAuth
Request
query Parameters
timezoneOffset
integer

The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.

header Parameters
X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

X-Scio-Actas
string <email>

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

Request Body schema: application/json
required
fileIds
required
Array of strings

IDs of files to fetch.

Responses
200

OK

Response Schema: application/json
object

A map of file IDs to ChatFile structs.

400

Invalid request

401

Not Authorized

403

Forbidden

429

Too Many Requests

Request samples
application/json
{
  • "fileIds": [
    • "string"
    ]
}
Response samples
application/json
{
  • "files": {
    • "property1": {
      • "id": "FILE_1234",
      • "name": "sample.pdf",
      • "metadata": {
        • "status": "PROCESSING",
        • "uploadTime": 0,
        • "processedSize": 0,
        • "failureReason": "PARSE_FAILED",
        • "mimeType": "string"
        }
      },
    • "property2": {
      • "id": "FILE_1234",
      • "name": "sample.pdf",
      • "metadata": {
        • "status": "PROCESSING",
        • "uploadTime": 0,
        • "processedSize": 0,
        • "failureReason": "PARSE_FAILED",
        • "mimeType": "string"
        }
      }
    }
}