Skip to main content
POST
cURL

Авторизації

Authorization
string
header
обов'язково

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

Тіло

application/json
contentType
string
обов'язково

Mime type

Приклад:

"image/png"

contentLength
number
обов'язково

File size

Приклад:

123

type
enum<integer>
обов'язково

Type

Доступні опції:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
Приклад:

1

expiresIn
number

Token expire time, seconds

Приклад:

3600

hash
string

File hash

Приклад:

"xxxxxxxx"

baseId
string

Відповідь

201 - application/json

return the upload URL and the key.

url
string
обов'язково

Upload url

Приклад:

"https://example.com/attachment/upload"

uploadMethod
string
обов'язково

Upload method

Приклад:

"POST"

token
string
обов'язково

Secret key

Приклад:

"xxxxxxxx"

requestHeaders
object
обов'язково
Приклад:
Останнє оновлення 4 вересня 2026 р.