POST
/
attachments
/
notify
/
{token}
curl --request POST \
  --url 'https://app.teable.cn/api/attachments/notify/%7Btoken%7D?filename=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{
  "token": "xxxxxxxxxxx",
  "size": 1024,
  "url": "/bucket/xxxxx",
  "path": "/table/xxxxxx",
  "mimetype": "video/mp4",
  "width": 100,
  "height": 100,
  "presignedUrl": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

token
string
required

Query Parameters

filename
string

Response

201 - application/json
Attachment information
token
string
required

Token for the uploaded file

Example:

"xxxxxxxxxxx"

size
number
required

File size in bytes

Example:

1024

url
string
required

URL of the uploaded file

Example:

"/bucket/xxxxx"

path
string
required

file path

Example:

"/table/xxxxxx"

mimetype
string
required

MIME type of the uploaded file

Example:

"video/mp4"

presignedUrl
string
required

Preview url

width
number

Image width of the uploaded file

Example:

100

height
number

Image height of the uploaded file

Example:

100