v1
latestOpenAPI 3.0.02026-07-2638801.8 MBattachments
Retrieve upload signature.
post/attachments/signature
Request body
Example request
{
"contentType": "image/png",
"contentLength": 123,
"expiresIn": 3600,
"hash": "xxxxxxxx",
"type": 1
}Response
return the upload URL and the key.
Example response
{
"url": "https://example.com/attachment/upload",
"uploadMethod": "POST",
"token": "xxxxxxxx",
"requestHeaders": {
"Content-Type": "image/png"
}
}