Download file

POST /v2/files/fetch

Description

Use this API method to download a file from an HTTP resource and save it. Any file in your Sirv account can be downloaded with this method.

CORS

Origin
maxAge
86400
headers
  • Accept
  • Authorization
  • Content-Type
  • If-None-Match
additionalHeaders
  • Content-Length
  • User-Agent
exposedHeaders
  • *
Credentials
false
Override
  • Request Parameters

    Query Parameters

    Denied

    Payload Parameters

    Response Parameters

    •  
      Max
      20
      [
      • Any of:
        • {
          • filename
            string
          • success
            boolean
          • attempted
            boolean
          • retryAfter
            date
          • attempts
            [
            • Any of:
              • {
                • url
                  string
                • initiator
                  {
                    }
                  • statusCode
                    number
                  • headers
                    {
                      }
                    • error
                      {
                        }
                      • date
                        date
                      }
                  ]
                }
            ]

        Looking for file management?

        The S3 API let's you upload / download / query / delete / modify / move files.

        S3 API documentation

        Need Help?