Skip to main content
POST
Get a download link for a tool's code
  • Business accounts only.
  • download_url needs no sign-in. It downloads the zip once, and stops working 30 minutes after it was made, at expires_at. Until then anyone with the link can download the code, so share it only with whoever should read 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 that needs no sign-in: one GET downloads it, before expires_at

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: false for a public tool, whose code is read only

start_with
string[]
required

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