Last updated 3 months ago
Was this helpful?
Your API token
curl -L \ --url 'https://api.netmind.ai/v1/files' \ --header 'Authorization: text'
[ { "id": "text", "file_name": "text", "purpose": "fine-tune", "created_at": 1 } ]
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
curl -L \ --url 'https://api.netmind.ai/v1/files/{file_id}/presigned_url' \ --header 'Authorization: text'
{ "presigned_url": "https://example.com" }
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": "text" } ]
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" }