---
title: "Batch fetch deployment content as TAR.GZ"
method: POST
path: "/deployments/fetch-batch"
tags: ["Gateway Internal APIs"]
---

# Batch fetch deployment content as TAR.GZ

`POST /deployments/fetch-batch`

Returns deployment content (platform api.yaml) for the given deployment IDs as a single
application/x-tar+gzip archive. Used by the API Platform gateway for startup sync.
Requires api-key header.

## Request body

- BatchDeploymentsRequest — Request body for POST /deployments/batch.
  - `deploymentIds` string[], required — List of deployment IDs (revision UUIDs) to fetch.

## Response `200`

TAR.GZ archive of deployment content.

## Other responses

- `401` — Missing or invalid api-key.
- `default` — Unexpected error

## Changes

- **2026-03-31** `95b24c461207` — 1 info
  - endpoint added
- **2024-01-29** `f2e9e07fd354` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wso2/apis/internal-utility-api/changes/deployments/fetch-batch/post.md)

---

[API](https://skmtc.dev/wso2/apis/internal-utility-api.md) · [All operations](https://skmtc.dev/wso2/apis/internal-utility-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wso2/internal-utility-api/revisions/0be9aa8493bc/schema)
