import requests file_id = "file-abc123" url = f"https://api.keywordsai.co/api/files/{file_id}/" headers = { "Authorization": "Bearer YOUR_API_KEY" } response = requests.get(url, headers=headers) print(response.json())
{ "id": "file-abc123", "object": "file", "bytes": 1024, "created_at": 1677610602, "filename": "batch_input.jsonl", "purpose": "batch" }
file-xxxxx
Example
file-abc123
Was this page helpful?