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"
}
}
Get information about a 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"
}
}
Retrieve detailed information about a specific file stored in R2 storage, including metadata, size, and access URLs.
This endpoint requires authentication via API key.
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"
}
}
Indicates if the request was successful
Show File Information Object
Unique file key in storage
Original filename when uploaded
File size in bytes
Human-readable file size
MIME type of the file
ISO timestamp when file was uploaded
ISO timestamp of last modification
File entity tag for caching
Direct public URL to access the file
API URL to download the file