Files

Upload a private file

post
Body
filestring · binaryOptional
Responses
201

The file has been successfully uploaded.

application/json
post
POST /v1/files/private HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17

{
  "file": "binary"
}
{
  "key": "text",
  "mimetype": "text",
  "size": 1,
  "originalname": "text"
}

Get a signed URL for a private file

get
Query parameters
keystringRequired

The key of the file in S3

Responses
200

Returns a signed URL for the file.

application/json
get
GET /v1/files/private?key=text HTTP/1.1
Host: 
Accept: */*
{
  "key": "text"
}

Upload a public file

post
Body
filestring · binaryOptional
Responses
201

The file has been successfully uploaded.

application/json
post
POST /v1/files/public HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17

{
  "file": "binary"
}
{
  "url": "text",
  "mimeType": "text",
  "fileSize": 1,
  "fileName": "text"
}

Last updated

Was this helpful?