Files
Last updated
Last updated
POST /v1/files HTTP/1.1
Host: api.deeptrin.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"file_name": "text",
"purpose": "fine-tune"
}{
"id": "text",
"presigned_url": "https://example.com"
}GET /v1/files HTTP/1.1
Host: api.deeptrin.com
Authorization: text
Accept: */*
[
{
"id": "text",
"file_name": "text",
"purpose": "fine-tune",
"created_at": 1
}
]GET /v1/files/{file_id} HTTP/1.1
Host: api.deeptrin.com
Authorization: text
Accept: */*
{
"id": "text",
"file_name": "text",
"purpose": "fine-tune",
"created_at": 1
}DELETE /v1/files/{file_id} HTTP/1.1
Host: api.deeptrin.com
Authorization: text
Accept: */*
GET /v1/files/{file_id}/presigned_url HTTP/1.1
Host: api.deeptrin.com
Authorization: text
Accept: */*
{
"presigned_url": "https://example.com"
}