cURL
curl --request GET \ --url http://localhost:8080/v1/files/{file_id} \ --header 'x-model-provider: <x-model-provider>'
{ "id": "<string>", "object": "<string>", "bytes": 123, "created_at": 123, "filename": "<string>", "purpose": "<string>", "status": "<string>", "storage_backend": "<string>", "storage_uri": "<string>", "extra_fields": "<unknown>" }
Retrieves metadata for a specific file.
The model provider
The ID of the file to retrieve
File metadata
Was this page helpful?