Python
from datagrid_ai import Datagrid client = Datagrid( api_key="My API Key", ) file_object = client.files.retrieve( "file_id", ) print(file_object.id)
{ "object": "file", "id": "<string>", "filename": "<string>", "created_at": "2023-11-07T05:31:56Z", "media_type": "<string>" }
Retrieves a file by id.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The id of the file to retrieve.
Retrieved file
The File object represents a document that has been uploaded to Datagrid.
File