Last updated 2 months ago
Was this helpful?
/v1/public-files
curl -L \ --url 'https://api.netmind.ai/v1/public-files'
[ { "id": "text", "file_name": "text", "purpose": "fine-tune", "created_at": 1, "token": 1, "length": 1, "bytes": 1, "description": "" } ]
/v1/files
Your API token
fine-tune
batch
curl -L \ --request POST \ --url 'https://api.netmind.ai/v1/files' \ --header 'Authorization: text' \ --header 'Content-Type: application/json' \ --data '{ "file_name": "text", "purpose": "fine-tune" }'
{ "id": "text", "presigned_url": "https://example.com" }
curl -L \ --url 'https://api.netmind.ai/v1/files' \ --header 'Authorization: text'
[ { "id": "text", "file_name": "text", "purpose": "fine-tune", "created_at": 1 } ]
/v1/files/{file_id}
curl -L \ --url 'https://api.netmind.ai/v1/files/{file_id}' \ --header 'Authorization: text'
{ "id": "text", "file_name": "text", "purpose": "fine-tune", "created_at": 1 }
curl -L \ --request DELETE \ --url 'https://api.netmind.ai/v1/files/{file_id}' \ --header 'Authorization: text'
No body
/v1/files/{file_id}/presigned_url
curl -L \ --url 'https://api.netmind.ai/v1/files/{file_id}/presigned_url' \ --header 'Authorization: text'
{ "presigned_url": "https://example.com" }