Upload Document
POST
/api/v1/files/documents
Upload document file (max 10MB)
Authorizations
BearerAuth
Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>
TypeHTTP (bearer)
Request Body
multipart/form-data
file
string
Required
Document file
Format
"binary"Responses
Upload successful
application/json
{
"code": 0,
"msg": "ok",
"data": {
"file_id": "string"
}
}
