>>

Get File Data

GET/<bucket>//data

Get a file’s metadata by ID from a specific bucket.

>>

Path Params

NameType
bucketString
idNumber
>>

Response

FileData

FieldTypeDescription
idNumberThe ID of the file.
nameStringThe name of the file.
bucketStringThe bucket the file is stored in.
spoiler?BooleanIf the file is spoilered.
metadataFileMetadataThe File Metadata of the file.
>>

Example

curl \
  https://cdn.eludris.gay/attachments/2198189244420/data

{
  "id": 2198189244420,
  "name": "trolley.mp4",
  "bucket": "attachments",
  "spoiler": true,
  "metadata": {
    "type": "video",
    "width": 576,
    "height": 682
  }
}