Files
Body
filestring · binaryOptional
Responses
201
The file has been successfully uploaded.
application/json
400
Bad Request.
401
Not authorized to upload a file.
429
Rate limit exceeded.
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"
}
Query parameters
keystringRequired
The key of the file in S3
Responses
200
Returns a signed URL for the file.
application/json
400
Bad Request.
401
Not authorized to access this file.
404
File not found.
get
GET /v1/files/private?key=text HTTP/1.1
Host:
Accept: */*
{
"key": "text"
}
Body
filestring · binaryOptional
Responses
201
The file has been successfully uploaded.
application/json
400
Bad Request.
401
Not authorized to upload a file.
429
Rate limit exceeded.
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?