Skip to main content
GET
/
library
/
files
/
{fileId}
Get a file metadata
curl --request GET \
  --url https://api.closebot.com/library/files/{fileId} \
  --header 'X-CB-KEY: <api-key>'
{
  "fileId": "<string>",
  "fileName": "<string>",
  "lastModified": "2023-11-07T05:31:56Z",
  "fileType": "<string>",
  "fileStatus": "<string>",
  "fileSize": 123,
  "estimatedFileSize": 123,
  "sources": [
    {
      "id": "<string>",
      "name": "<string>",
      "category": "<string>"
    }
  ],
  "accountId": "<string>",
  "uri": "<string>"
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Path Parameters

fileId
string
required

The ID of the file to get.

Response

Success

fileId
string | null
fileName
string | null
lastModified
string<date-time>
fileType
string | null
fileStatus
string | null
fileSize
integer<int64>
estimatedFileSize
integer<int64>
sources
object[] | null
accountId
string | null
uri
string | null