---
title: "Download a tool's code"
method: GET
path: "/v1/code/{id}/export"
tags: ["code"]
---

# Download a tool's code

`GET /v1/code/{id}/export`

## Request

- Base URL: `https://api.pomerado.ai`
- URL: `https://api.pomerado.ai/v1/code/{id}/export`
- Auth: HTTP bearer

Download the code a tool your team built runs now, as a zip of its live version's files.

- Business accounts only.
- content_base64 holds the zip; decode it and save it as file_name.
- It holds your team's files and the files Pomerado added to run them, and nothing else.

## Path parameters

- `id` string, required

## Response `200`

The zip

- CodeArchive
  - `file_name` string, required: A name to save it under, such as acme-travel-search-flights-v7.zip
  - `media_type` 'application/zip', required
  - `size` integer, required: The zip's size in bytes
  - `content_base64` string, required: The zip, base64-encoded

## Other responses

- `400`: invalid_request
- `401`: unauthorized, reauthentication_required
- `403`: business_account_required, forbidden
- `404`: not_found
- `500`: internal_error
- `503`: temporarily_unavailable

---

[API](https://skmtc.dev/pomerado/apis/pomerado-api.md) · [All operations](https://skmtc.dev/pomerado/apis/pomerado-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pomerado/apis/pomerado-api/revisions/48dac2a3143e?raw)
