GET
/
v1
/
storage
/
file
/
{fileKey}
curl -X GET https://api.verbalisai.com/v1/storage/file/user123/audio-recording-1642234567.mp3 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "data": {
    "fileKey": "user123/audio-recording-1642234567.mp3",
    "originalName": "audio-recording.mp3",
    "size": 1048576,
    "sizeFormatted": "1.00 MB",
    "contentType": "audio/mpeg",
    "uploadedAt": "2024-01-15T10:30:00Z",
    "lastModified": "2024-01-15T10:30:00Z",
    "etag": "d41d8cd98f00b204e9800998ecf8427e",
    "publicUrl": "https://r2-bucket.domain.com/user123/audio-recording-1642234567.mp3",
    "downloadUrl": "https://api.verbalisai.com/v1/storage/download/user123/audio-recording-1642234567.mp3"
  }
}

Retrieve detailed information about a specific file stored in R2 storage, including metadata, size, and access URLs.

This endpoint requires authentication via API key.

fileKey
string
required

The unique file key of the stored file

curl -X GET https://api.verbalisai.com/v1/storage/file/user123/audio-recording-1642234567.mp3 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "data": {
    "fileKey": "user123/audio-recording-1642234567.mp3",
    "originalName": "audio-recording.mp3",
    "size": 1048576,
    "sizeFormatted": "1.00 MB",
    "contentType": "audio/mpeg",
    "uploadedAt": "2024-01-15T10:30:00Z",
    "lastModified": "2024-01-15T10:30:00Z",
    "etag": "d41d8cd98f00b204e9800998ecf8427e",
    "publicUrl": "https://r2-bucket.domain.com/user123/audio-recording-1642234567.mp3",
    "downloadUrl": "https://api.verbalisai.com/v1/storage/download/user123/audio-recording-1642234567.mp3"
  }
}

Response Fields

success
boolean

Indicates if the request was successful

data
object