---
title: "Export an API Proxy"
method: GET
path: "/apiops/projects/{projectName}/apiProxies/{apiProxyName}/export/"
tags: ["ApiProxy"]
---

# Export an API Proxy

`GET /apiops/projects/{projectName}/apiProxies/{apiProxyName}/export/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/apiProxies/{apiProxyName}/export/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/apiProxies/:apiProxyName/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Exports an API Proxy with its policies in ZIP format. With withDependencies=true the package also carries every object the proxy references (global policies, certificates, credentials, connections, AI providers, environment variables, ...), which the import binds to same-named objects in the target project. For an MCP gateway that also covers the API Proxies it exposes as tools; set includeReferencedProxies=false to leave those out and have the import resolve them by name in the target project instead.

## Path parameters

- `projectName` string, required
- `apiProxyName` string, required

## Query parameters

- `encrypt` boolean
- `withDependencies` boolean
- `includeReferencedProxies` boolean

## Headers

- `X-Apinizer-Package-Passphrase` string

## Response `200`

successful operation!

- ApiOpsResponseSuccess
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` string[]
  - `resultCount` integer
  - `deploymentResult` DeploymentResult
    - `envName` string
    - `podName` string
    - `podIp` string
    - `success` boolean
    - `detail` string
    - `responseTime` integer
    - `detailList` unknown[]
      - unknown
    - `firstFromApiResultList` unknown
  - `unresolvedReferences` string[]
  - `advisories` ApiOpsAdvisoryDTO[]
    - `level` string
    - `key` string
    - `params` object

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
