1. Home
  2. Docs
  3. API Connection Guidelines
  4. Content Management
  5. Download content

Download content

Downloads the script.
GET https://yoursite.com/your_api_path/items/{item-id}/content
NOTE: Only files can be downloaded.

Parameters
id (string) The unique identifier that represents a file.

Response
Returns a 302 Found response redirecting to a pre-authenticated download URL for the file. Scriptation will follow the location header in the response to download the content of the file.

HTTP/1.1 302 Found
Location: https://yoursite.files.com/123456abcde

Error response
The error response is a single JSON object that contains a single property named error. Here is an example of a full JSON error body:

{
   "error": {
        "code": 123,
        "message": “Error description"  
   }
}