Get a signed URL to upload a file
POST
apiKeyheader
x-api-key<token>application/json- body
scenarioId*stringValue in
"post_attachments""user_avatar"fileName*stringLength
1 <= lengthfileType*stringValue in
"image/jpeg""image/png""image/webp""image/gif""image/avif""video/mp4""video/webm""video/quicktime"fileSize*numberRange
0 < value <= 524288000checksum*stringMatch
^[A-Za-z0-9+/]{43}=$OK
application/json- response
uploadType*unknownuploadId*stringFormat
uuidsignedUrl*stringrequiredHeaders*expiresAt*stringFormat
date-timecurl -X POST 'https://app.postonus.com/api/v1/uploads/initiate' \ -H 'Content-Type: application/json' \ -d '{ "scenarioId": "post_attachments", "fileName": "string", "fileType": "image/jpeg", "fileSize": 1, "checksum": "string"}'Example Response
{ "uploadType": "single", "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497", "signedUrl": "string", "requiredHeaders": { "property1": "string", "property2": "string" }, "expiresAt": "2019-08-24T14:15:22Z"}