Last updated 11 days ago
Successful Response
const response = await fetch('https://api.netmind.ai/v1/files', { method: 'GET', headers: { "Authorization": "text" }, }); const data = await response.json();
[ { "id": "text", "file_name": "text", "purpose": "fine-tune", "created_at": 0 } ]
const response = await fetch('https://api.netmind.ai/v1/files/{file_id}/presigned_url', { method: 'GET', headers: { "Authorization": "text" }, }); const data = await response.json();
{ "presigned_url": "https://example.com" }
const response = await fetch('https://api.netmind.ai/v1/public-files', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "id": "text", "file_name": "text", "purpose": "fine-tune", "created_at": 0, "token": 0, "length": 0, "bytes": 0, "description": "text" } ]
const response = await fetch('https://api.netmind.ai/v1/files/{file_id}', { method: 'GET', headers: { "Authorization": "text" }, }); const data = await response.json();
{ "id": "text", "file_name": "text", "purpose": "fine-tune", "created_at": 0 }
const response = await fetch('https://api.netmind.ai/v1/files/{file_id}', { method: 'DELETE', headers: { "Authorization": "text" }, }); const data = await response.json();
{ "detail": [ { "loc": [ "text" ], "msg": "text", "type": "text" } ] }
const response = await fetch('https://api.netmind.ai/v1/files', { method: 'POST', headers: { "Authorization": "text", "Content-Type": "application/json" }, body: JSON.stringify({ "file_name": "text", "purpose": "fine-tune" }), }); const data = await response.json();
{ "id": "text", "presigned_url": "https://example.com" }