Skip to main content
GET
/
files
/
{fileId}
Get File
curl --request GET \
  --url https://api.g2cplatform.com/v2/files/{fileId} \
  --header 'X-API-Key: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "filename": "<string>",
  "size": 123,
  "mimeType": "<string>",
  "url": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "metadata": {}
}

Authorizations

X-API-Key
string
header
required

API key for authenticating requests. Include in X-API-Key header.

Path Parameters

fileId
string<uuid>
required

File identifier

Response

File details

id
string<uuid>
required

Unique identifier for the file

filename
string
required

Name of the file

size
integer
required

Size of the file in bytes

mimeType
string
required

MIME type of the file

url
string<uri>
required

URL to access the file

createdAt
string<date-time>
required

Timestamp when the file was uploaded

metadata
object

File metadata