POST
/files
curl \
--request POST 'https://api.kuaichuti.net/v1/files' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
Response examples (201)
{
"id": "file-67d79d00e88e5d44933748e8",
"bytes": 0,
"object": "file",
"filename": "____________.pdf",
"created_at": "2025-03-17T11:54:40.960+08:00"
}
Response examples (400)
{
"error": {
"type": "invalid_request_error",
"message": "No file uploaded"
}
}