Skip to main content
POST
Create an inbound file upload

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required

Body

application/json
contentType
string
required
Minimum string length: 3
head
string<byte>
required

Base64 of exactly the first min(size, 512) bytes.

Maximum string length: 684
id
string
required
Required string length: 1 - 128
size
integer<int64>
required
Required range: 1 <= x <= 26214400
source
enum<string>
required
Available options:
slack,
gmail,
drive,
api
name
string

Source file name. The runtime derives the stored name from it, so it may be empty.

Response

File block resolved and direct upload grant created when needed.

block
object
required
upload
object