API Reference
cURL
curl --request POST \ --url https://production.runalloy.com/connectors/files/upload/request \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-version: <x-api-version>' \ --data ' { "filename": "document.pdf", "mimeType": "application/pdf", "md5": "2942bfabb3d05332b66eb128e0842cff" } '
{ "presignedUrl": { "md5": "KUK/q7PQUzK2brEo4IQs/w==", "presignedUrl": "https://alloy-user-files.s3.us-east-1.amazonaws.com/651eb6e11d156e0d7a42c59d_document.pdf", "type": "new", "s3Key": "651eb6e11d156e0d7a42c59d_document.pdf" } }
Generate a presigned URL for direct S3 file upload
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
API version
Name of the file to be uploaded
"document.pdf"
MIME type of the file
"application/pdf"
MD5 hash of the file (hex or base64 format)
"2942bfabb3d05332b66eb128e0842cff"
Presigned URL generated successfully
Show child attributes
MD5 hash in base64 format
"KUK/q7PQUzK2brEo4IQs/w=="
Presigned URL for uploading
"https://alloy-user-files.s3.us-east-1.amazonaws.com/651eb6e11d156e0d7a42c59d_document.pdf"
File status
new
existing
"new"
S3 key for the file
"651eb6e11d156e0d7a42c59d_document.pdf"