curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/uploadchatfiles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=[
  null
]'
{
  "files": [
    {
      "id": "FILE_1234",
      "url": "www.google.com",
      "name": "sample.pdf",
      "metadata": {
        "status": "PROCESSING",
        "uploadTime": 123,
        "processedSize": 123,
        "failureReason": "PARSE_FAILED",
        "mimeType": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Scio-Actas
string

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

X-Glean-Auth-Type
string

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

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.

Body

multipart/form-data
files
file[]
required

Raw files to be uploaded for chat in binary format.

Response

200
application/json
OK
files
object[]

Files uploaded for chat.

Structure for file uploaded by a user for Chat.