Skip to main content
POST
Store an encrypted runtime file

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required
Required string length: 1 - 255
mime_type
string
required
Required string length: 3 - 150
data_base64
string
required
write-only

Canonical base64 file bytes, at most five megabytes after decoding.

Maximum string length: 6666668
Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$

Response

Owner-scoped metadata for a file of at most five megabytes, with a fixed expiry.

file_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
name
string
required
Required string length: 1 - 255
mime_type
string
required
Required string length: 3 - 150
size
integer
required
Required range: 0 <= x <= 26214400
expires_at
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$