Skip to main content
GET
/
public
/
v1
/
drive
/
files
/
{fileId}
cURL
curl -X GET "https://api.copera.app/public/v1/drive/files/60d5ec49f1b2c72d88f0a1b2" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "_id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "owner": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "mimeType": "<string>",
  "size": 123,
  "parent": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developer.copera.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Retrieves the metadata of a specific file or folder by its ID. The authenticated user must have access to the drive item — either as the owner or as a shared participant.

Response

Returns a drive item object containing:
  • File or folder ID
  • Name and type (file or folder)
  • MIME type and file size (for files)
  • Parent folder reference (if nested)
  • Owner and participant information
  • Creation and update timestamps

Authorizations

Authorization
string
header
required

Bearer token

Path Parameters

fileId
string
required

ObjectId

Required string length: 24
Pattern: ^[0-9a-fA-F]{24}$

Response

Default Response

_id
string
required
name
string
required
type
string
required

"file" or "folder"

owner
string
required
createdAt
string
required
updatedAt
string
required
mimeType
string
size
number
parent
string