Skip to main content
GET
/
v1
/
storage
/
files
/
{fileId}
Get File
curl --request GET \
  --url https://api.zarkai.xyz/v1/storage/files/{fileId} \
  --header 'x-api-key: <api-key>'
{
  "type": "content",
  "fileId": "<string>",
  "sizeBytes": "<string>",
  "mimeType": "<string>",
  "name": "<string>",
  "data": {
    "encoding": "base64",
    "content": "<string>",
    "metadata": {
      "blobId": "<string>",
      "quiltId": "<string>",
      "quiltPatchId": "<string>"
    }
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

fileId
string
required

The unique identifier of the file

Response

File content or metadata

type
enum<string>
required

Response type based on file size

Available options:
content,
metadata
fileId
string
required

The unique identifier of the file

sizeBytes
string
required

File size in bytes (returned as string to handle large file sizes)

mimeType
string
required

MIME type of the file

name
string
required

Name of the file

data
object
required

File content or metadata