---
updatedAt: 2026-10-03T16:03:37.000Z
agentTools:
  projectIndex: https://docs.pennsieve.io/llms.txt
---

# Get a download manifest for a published dataset (signed in)

For signed-in users, typically through the Pennsieve agent: presigned
links for the files of a published selection, of any size. No
`paths` (or `[""]`) is the whole version. Pages and
cursors work as for `/manifests`; the header counts the whole
selection, and the first page spends the user's daily allowance for
published data (429 with Retry-After when it's used up).


# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "version": "1.0",
    "title": "Downloads API",
    "description": "Asynchronous archive downloads. Request an archive of a selection of\npackages or files, poll it until it is READY, then fetch a short-lived\ndownload link. Archives expire after the retention period (3 days by\ndefault).\n",
    "contact": {
      "name": "Pennsieve Support",
      "email": "support@pennsieve.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "url": "https://api2.pennsieve.io/downloads",
      "description": "Production server"
    },
    {
      "url": "https://api2.pennsieve.net/downloads",
      "description": "Development server"
    }
  ],
  "tags": [
    {
      "name": "Public",
      "description": "Published (Discover) datasets, for signed-in users: embargoed versions\nthey may preview, and the agent's downloads of any size. Downloads\nwithout signing in use the public downloads API\n(https://downloads.pennsieve.io), not these routes.\n"
    }
  ],
  "paths": {
    "/public/manifests": {
      "post": {
        "summary": "Get a download manifest for a published dataset (signed in)",
        "description": "For signed-in users, typically through the Pennsieve agent: presigned\nlinks for the files of a published selection, of any size. No\n`paths` (or `[\"\"]`) is the whole version. Pages and\ncursors work as for `/manifests`; the header counts the whole\nselection, and the first page spends the user's daily allowance for\npublished data (429 with Retry-After when it's used up).\n",
        "operationId": "getPublicManifest",
        "tags": [
          "Public"
        ],
        "security": [
          {
            "token_auth": []
          }
        ],
        "x-amazon-apigateway-integration": {
          "$ref": "#/components/x-amazon-apigateway-integrations/download-service"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/PublicSelection"
                      },
                      {
                        "$ref": "#/components/schemas/SavedPublicSelection"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "cursor": {
                        "type": "string",
                        "description": "The previous page's next."
                      },
                      "limit": {
                        "type": "integer",
                        "maximum": 1000,
                        "default": 1000
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One page of the manifest.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicManifest"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "description": "The version changed while paging; start again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "The version was unpublished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Too many files for one manifest.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The user's daily allowance for published data is used up.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "components": {
    "x-amazon-apigateway-integrations": {
      "download-service": {
        "type": "aws_proxy",
        "uri": "${api_lambda_arn}",
        "httpMethod": "POST",
        "passthroughBehavior": "when_no_match",
        "contentHandling": "CONVERT_TO_TEXT",
        "payloadFormatVersion": 2
      }
    },
    "securitySchemes": {
      "token_auth": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-amazon-apigateway-authorizer": {
          "identitySource": "$request.header.Authorization",
          "authorizerUri": "${authorize_lambda_invoke_uri}",
          "authorizerPayloadFormatVersion": "2.0",
          "authorizerResultTtlInSeconds": 300,
          "type": "request",
          "enableSimpleResponses": true,
          "authorizerCredentials": "${gateway_authorizer_role}"
        }
      }
    },
    "responses": {
      "Error": {
        "description": "Error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "SavedPublicSelection": {
        "type": "object",
        "required": [
          "selectionId"
        ],
        "properties": {
          "selectionId": {
            "type": "string",
            "description": "A saved selection (POST /public/selections).",
            "example": "sel_l2uw6ebgbzymzzusdedg64i5wm"
          }
        }
      },
      "PublicSelection": {
        "type": "object",
        "required": [
          "datasetId"
        ],
        "properties": {
          "datasetId": {
            "type": "integer",
            "format": "int64",
            "description": "The published dataset's id."
          },
          "version": {
            "description": "A version number, or \"latest\" (the default).",
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string",
                "enum": [
                  "latest"
                ]
              }
            ]
          },
          "paths": {
            "type": "array",
            "maxItems": 1000,
            "description": "Files and folders of the version; [\"\"] is the whole version.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PublicManifest": {
        "type": "object",
        "properties": {
          "header": {
            "type": "object",
            "properties": {
              "datasetId": {
                "type": "integer",
                "format": "int64"
              },
              "version": {
                "type": "integer"
              },
              "count": {
                "type": "integer",
                "description": "Files in the whole selection."
              },
              "size": {
                "type": "integer",
                "format": "int64",
                "description": "Bytes in the whole selection."
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "When this page's first link expires."
              }
            }
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "fileName": {
                  "type": "string"
                },
                "path": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "url": {
                  "type": "string"
                },
                "size": {
                  "type": "integer",
                  "format": "int64"
                },
                "sha256": {
                  "type": "string"
                }
              }
            }
          },
          "skipped": {
            "type": "array",
            "description": "Files discover-service can't serve, with the reason.",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "fileName": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              }
            }
          },
          "next": {
            "type": "string",
            "description": "The cursor for the next page; absent on the last."
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}
```