Skip to content
v2.7

Get deployment download

Get a site deployment content by its unique ID.

GET/sites/{siteId}/deployments/{deploymentId}/downloadScope sites.read

SDK: @owbase/node only

Get a site deployment content by its unique ID. The endpoint response return with a ‘Content-Disposition: attachment’ header that tells the browser to start downloading the file to user downloads directory.

siteId string required

Site ID.

deploymentId string required

Deployment ID.

type DeploymentDownloadType

Deployment file to download. Can be: “source”, “output”. Values: source, output.

token string

Presigned source-download token for accessing this deployment without a session (jobs-service).

Access: API key with the sites.read scope or user session (the resource’s permissions apply).

200Success
400Invalid or missing parameter
401No session, no permission on the resource or key without the scope
404Resource in the path not found
429Rate limit

Every error comes as JSON with code, type and message: see Errors.

import { Client, Sites, DeploymentDownloadType } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const sites = new Sites(client);
const result = await sites.getDeploymentDownload({
siteId: '<SITE_ID>',
deploymentId: '<DEPLOYMENT_ID>',
type: DeploymentDownloadType.Source, // optional
token: '<TOKEN>', // optional
});
Response200 OK

No response body.


The descriptions on this page come from the server API specification (BSD-3-Clause license), and the examples come from the SDK generator (MIT license). The full notices are in the NOTICE file of the @owbase/web and @owbase/node packages.

Was this page helpful?