创建文件上载请求

POST /v1/file/create

需要 Bearer Token 鉴权。

端点#

POST https://api.multipost.app/v1/file/create

请求体#

application/json

字段类型必填说明
filenamestring建议填写,带扩展名

请求示例#

curl -X POST 'https://api.multipost.app/v1/file/create' \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "filename": "string"
}'

响应#

200

{
  "code": 0,
  "msg": "string",
  "data": {
    "fileId": "string",
    "url": "string"
  }
}