Create file upload

POST /v1/file/create

Requires Bearer token authentication.

Endpoint#

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

Request body#

application/json

FieldTypeRequiredDescription
filenamestring建议填写,带扩展名

Request example#

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

Response#

200

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