File Upload
The File Upload URL APIs provide secure, pre-signed URLs for uploading ZIP files to Launch.
Get a Signed Upload URL for a Project
https://launch-api.contentstack.com/projects/upload/signed_urlThe Get a Signed Upload URL for a Project request fetches the details of the signed URL where you must upload the file while creating a project.
As the next step, Upload Your Deployment Zip File to the Signed URL.
{
"uploadUrl": "https://test-upload-url.com",
"expiresIn": 900,
"uploadUid": "50xxxxa8",
"method": "POST",
"fields": [
{
"formFieldKey": "bucket",
"formFieldValue": "Get a Signed Upload URL for an Environment
https://launch-api.contentstack.com/projects/{project_uid}/environments/upload/signed_urlThe Get a Signed Upload URL for an Environment request fetches the details of the signed URL where you must upload the file when creating an environment.
As the next step, Upload Your Deployment Zip File to the Signed URL.
{
"uploadUrl": "https://test-upload-url.com",
"expiresIn": 900,
"uploadUid": "50xxxxa8",
"method": "POST",
"fields": [
{
"formFieldKey": "bucket",
"formFieldValue": "Get a Signed Upload URL for a Deployment
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/deployments/upload/signed_urlThe Get a Signed Upload URL for a Deployment request retrieves the details of the signed URL where you must upload the file when creating or redeploying a deployment.
As the next step, Upload Your Deployment Zip File to the Signed URL.
{
"uploadUrl": "https://test-upload-url.com",
"expiresIn": 900,
"uploadUid": "50xxxxa8",
"method": "POST",
"fields": [
{
"formFieldKey": "bucket",
"formFieldValue": "Get a Download URL for a Deployment
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/deployments/{deployment_uid}/download/signed_urlThe Get a Download URL for the Uploaded File request returns the signed URL to download the uploaded file from the latest deployment.
{
"downloadUrl": "https://test-download-url.com",
"expiresIn": 900
}