code

Get a download link for a tool's code

Get a short-lived link that downloads the code a tool your team built runs now, as a zip of its live version's files, for a coding agent or anything else you give it to.

  • 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.
post/v1/code/{id}/export-link

Request

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

Path parameters

idstring required
Example:tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190

a tool ID: tool_ and 32 lowercase hex digits

Response

The link to the zip

download_urlstring required

A link to the zip that needs no sign-in: one GET downloads it, before expires_at

expires_atstring required

a string to be decoded into a Date

file_namestring required

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

sizeinteger required

The zip's size in bytes

tool_namestring required

The tool's name

integration_namestring required

The integration's name

site_urlstring nullable required

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

editableboolean required

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

start_withstring[] required

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

Changes

No recorded changes to this operation across all 1 revision of this API.