Skip to main content
POST
Get a download link for a tool's code
  • Business accounts only.
  • download_url downloads the zip once, and stops working 5 minutes after it was made, at expires_at, so fetch it right away. Send transfer_key with it as the Pomerado-Transfer-Key header, or this API key or token as Authorization: Bearer. A download without either answers unauthorized. Share the link and key only with whoever should read the code. A web page on another site can’t read it.
  • Your team’s audit log records each link made and each download of it.
  • The zip is the one code.export answers. start_with names the files to read first.
  • Each call makes a new link.
  • Callers: an API key, an MCP OAuth token or a Dashboard session.
  • Permission: tools:read.
  • Effect: Creates or changes something.
  • Errors: business_account_required, not_found, and the errors any request can get.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

a tool ID: tool_ and 32 lowercase hex digits

Example:

"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Response

The link to the zip

download_url
string
required

A link to the zip: one GET downloads it, before expires_at, with transfer_key as the Pomerado-Transfer-Key header or the same API key or token as Authorization: Bearer. A GET without either answers unauthorized.

transfer_key
string
required

This link's transfer key: send it as the Pomerado-Transfer-Key header, as in curl -fsS -o code.zip -H 'Pomerado-Transfer-Key: <transfer_key>' '<download_url>', which fails on an HTTP error instead of saving it. Keep it as private as the link.

expires_at
string
required

a string to be decoded into a Date

file_name
string
required

A name to save it under, such as acme-travel-search-flights-v7.zip

size
integer
required

The zip's size in bytes

tool_name
string
required

The tool's name

integration_name
string
required

The integration's name

site_url
string | null
required

The website's https origin, or null for an offline tool

editable
boolean
required

Whether code.save_draft can save changes to the tool's draft. Always true.

start_with
string[]
required

Where to start reading: the paths of your team's files the tool runs, such as src/tool.mjs