Get a pre-signed URL
Generate Pre-Signed URL for File Uploads
The POST /pre-signed-url endpoint provides a secure, pre-signed URL that you can use to upload files directly to a designated storage service. The URL is time-limited, remaining valid for 15 minutes, and authenticated to ensure that file uploads are secure. The maximum supported file size is 100000000 bytes (100MB).
Uploading Your File
Once you have obtained the pre-signed URL and the accompanying fields (key, name, x-amz-Algorithm, x-amz-credential, x-amz-date, x-amz-signature, x-amz-security-token) from the API endpoint:
To upload your file to the designated storage location using the provided data, you need to make a request formatted as follows:
curl -X POST 'url' \
--form 'key="key"' \
--form 'name="name"' \
--form 'X-Amz-Algorithm="x-amz-algorithm"' \
--form 'X-Amz-Credential="x-amz-credential"' \
--form 'X-Amz-Date="x-amz-date"' \
--form 'X-Amz-Security-Token="x-amz-security-token"' \
--form 'Policy="policy"' \
--form 'X-Amz-Signature= "x-amz-signature"' \
--form 'file=@"/path/to/file"'
Important Note: You must retain the returned key as it is essential for later referencing the file in the application, such as attaching it to a case or including it in a user comment.
Request
- Base URL: https://sandbox.api.flagright.com/management
- URL: https://sandbox.api.flagright.com/management/pre-signed-url
- Auth: API key in header x-api-key
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.