简体中文
Retrieve upload signature.
cURL
curl --request POST \ --url https://app.teable.cn/api/attachments/signature \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ --header 'content-type: application/json' \ --data '{"contentType":"image/png","contentLength":123,"expiresIn":3600,"hash":"xxxxxxxx","type":1,"baseId":"string"}'
{ "url": "https://example.com/attachment/upload", "uploadMethod": "POST", "token": "xxxxxxxx", "requestHeaders": { "Content-Type": "image/png" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
return the upload URL and the key.
The response is of type object.
object