Files
Header parameters
AuthorizationstringRequired
Your API token
Body
file_namestringRequired
purposestring · enumRequiredPossible values:
Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
POST /v1/files HTTP/1.1
Host: api.netmind.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"file_name": "text",
"purpose": "fine-tune"
}
{
"id": "text",
"presigned_url": "https://example.com"
}
Header parameters
AuthorizationstringRequired
Your API token
Responses
200
Successful Response
application/json
get
GET /v1/files HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*
200
Successful Response
[
{
"id": "text",
"file_name": "text",
"purpose": "fine-tune",
"created_at": 1
}
]
Path parameters
file_idstringRequired
Header parameters
AuthorizationstringRequired
Your API token
Responses
200
Successful Response
application/json
404
Not Found
422
Validation Error
application/json
get
GET /v1/files/{file_id} HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*
{
"id": "text",
"file_name": "text",
"purpose": "fine-tune",
"created_at": 1
}
Path parameters
file_idstringRequired
Header parameters
AuthorizationstringRequired
Your API token
Responses
200
Successful Response
application/json
Responseany
404
Not Found
422
Validation Error
application/json
delete
DELETE /v1/files/{file_id} HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*
No content
Path parameters
file_idstringRequired
Header parameters
AuthorizationstringRequired
Your API token
Responses
200
Successful Response
application/json
404
Not Found
422
Validation Error
application/json
get
GET /v1/files/{file_id}/presigned_url HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*
{
"presigned_url": "https://example.com"
}
Last updated
Was this helpful?