跳转到主要内容
POST
/
attachments
/
notify
/
{token}
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/attachments/notify/{token} \
  --header 'Authorization: Bearer <token>'
{
  "token": "xxxxxxxxxxx",
  "size": 1024,
  "url": "/bucket/xxxxx",
  "path": "/table/xxxxxx",
  "mimetype": "video/mp4",
  "presignedUrl": "<string>",
  "width": 100,
  "height": 100
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

token
string
必填

查询参数

filename
string

响应

201 - application/json

Attachment information

token
string
必填

Token for the uploaded file

示例:

"xxxxxxxxxxx"

size
number
必填

File size in bytes

示例:

1024

url
string
必填

URL of the uploaded file

示例:

"/bucket/xxxxx"

path
string
必填

file path

示例:

"/table/xxxxxx"

mimetype
string
必填

MIME type of the uploaded file

示例:

"video/mp4"

presignedUrl
string
必填

Preview url

width
number

Image width of the uploaded file

示例:

100

height
number

Image height of the uploaded file

示例:

100

Last modified on December 10, 2025