Get File Metadata
Get File Metadata through the OMA API.
anthropic-beta: files-api-2025-04-14.Authorizations
OMA workspace API key.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
The version of the OMA API you want to use.
Read more about versioning and our version history here.
Path Parameters
ID of the File.
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true Response
Successful Response
RFC 3339 datetime string representing when the file was created.
"2025-04-15T18:37:24.100435Z"
Original filename of the uploaded file.
1 - 500"document.pdf"
Unique object identifier.
The format and length of IDs may change over time.
"file_011CNha8iCJcU1wXNR6q4V8w"
MIME type of the file.
1 - 255"application/pdf"
Size of the file in bytes.
x >= 0102400
Object type.
For files, this is always "file".
"file"Whether the file can be downloaded.
false
The scope of this file, indicating the context in which it was created (e.g., a session).