📁 Upload Files
Get File
This endpoint allows you to retrieve a specific file by its ID. The file information and a pre-signed URL for downloading will be returned.
GET
/
v1
/
files
/
{id}
Header
# Example Request
curl --location --request GET 'https://api.getmetal.io/v1/files/{id}' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>'
{
"data": {
"id": "file-id",
"fileName": "my-file.pdf",
"fileType": "application/pdf",
"createdAt": "2023-03-17T17:21:13.163Z",
"url": "<preSignedUrl>"
}
}
Auth Headers
x-metal-api-key
string
requiredAn API key for your org.
x-metal-client-id
string
requiredA Client ID for your org.
Params
# Example Request
curl --location --request GET 'https://api.getmetal.io/v1/files/{id}' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>'
{
"data": {
"id": "file-id",
"fileName": "my-file.pdf",
"fileType": "application/pdf",
"createdAt": "2023-03-17T17:21:13.163Z",
"url": "<preSignedUrl>"
}
}