Skip to content
Docs menu

Download a ZIP archive

archive.url of a batch or url from POST /v1/archives. No API key needed. Conversions deleted in the meantime are left out; once none is left, the answer is 404.

GEThttps://api.switchfile.io/v1/archives/{id}

No API key needed.

Example

curl -L "https://api.switchfile.io/v1/archives/9f0c4e2a-1b7d-4c3e-a5f6-2d8e7b6a1c90?expires=1762538401&signature=3f9c2a7d41e8b6c05d1f9e2a7b4c8d3e6f0a1b2c3d4e5f60718293a4b5c6d7e8" \
  -o results.zip

Parameters

Path parameters

  • idstring (uuid)required

    ID of the batch or archive

Query parameters

  • expiresnumberrequired

    Part of the signed URL

    example: 1762538401

  • signaturestringrequired

    Part of the signed URL

    at least 1 characters · example: 3f9c2a7d41e8b6c05d1f9e2a7b4c8d3e6f0a1b2c3d4e5f60718293a4b5c6d7e8

Responses

  • 200The ZIP file
  • 403The signature is wrong or the URL has expired
    403 application/problem+json
    {
      "type": "https://switchfile.io/docs/api/v1#errors-expired",
      "title": "Expired",
      "status": 403,
      "code": "EXPIRED",
      "detail": "The link has expired."
    }
  • 404Not found, or every conversion in it was deleted
    404 application/problem+json
    {
      "type": "https://switchfile.io/docs/api/v1#errors-not-found",
      "title": "Not found",
      "status": 404,
      "code": "NOT_FOUND",
      "detail": "Archive not found."
    }
  • 409The batch is still running
    409 application/problem+json
    {
      "type": "https://switchfile.io/docs/api/v1#errors-batch-not-finished",
      "title": "Batch not finished",
      "status": 409,
      "code": "BATCH_NOT_FINISHED",
      "detail": "The batch is not finished yet."
    }
  • 422Invalid data. errors names the fields
    422 application/problem+json
    {
      "type": "https://switchfile.io/docs/api/v1#errors-invalid-data",
      "title": "Invalid data",
      "status": 422,
      "code": "INVALID_DATA",
      "detail": "The request contains invalid data.",
      "errors": {
        "to": [
          "Expected string"
        ]
      }
    }
  • 429Too many requests or a daily quota is used up. See Retry-After
    429 application/problem+json
    {
      "type": "https://switchfile.io/docs/api/v1#errors-rate-limit-exceeded",
      "title": "Rate limit exceeded",
      "status": 429,
      "code": "RATE_LIMIT_EXCEEDED",
      "detail": "Too many requests. Try again in 12 seconds."
    }

Error bodies and codes are explained in Errors.