Skip to main content
POST
Push, pull or merge a tool between environments
  • mode replace makes the target serve the source’s version: a push, or a pull. Pulling production’s is a reset, so the target follows production again.
  • mode merge applies the source’s changes onto the target’s newest version, such as a production repair into staging.
  • Each warning answers acknowledgment_required, with nothing written, until you accept it with force or acknowledge. Send dry_run first to see them.
  • A breaking or unchecked version never changes a public tool for everyone: it lands in production as your team’s private copy, or a new tool with lands_as new_tool.
  • Only an Owner or Admin signed in to the Dashboard puts code Pomerado didn’t check into production. With production protected, only Owners and Admins push, merge or roll back into it.
  • A version that lands as a new tool takes a copy of its tool’s own site sign-in, if it has one, which the new tool signs in with.
  • An API key limited to environments moves a version only into an environment it may be used in, from any of your team’s environments. An environment’s MCP URL moves one only into its own environment, from any.
  • Callers: an API key, an MCP OAuth token or a Dashboard session.
  • Permission: tools:build.
  • Effect: Creates or changes something.
  • Errors: acknowledgment_required, target_moved, production_protected, not_found, environment_not_found, environments_unavailable, merge_base_unknown, merge_too_large, tool_name_taken, 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

tool_id
string
required

a tool ID: tool_ and 32 lowercase hex digits

Example:

"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Body

application/json
from
string
required

a string matching the pattern ^a-z [blocked]?$

Pattern: ^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?$
to
string
required

a string matching the pattern ^a-z [blocked]?$

Pattern: ^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?$
mode
enum<string>
required

replace: the target serves the source's version. merge: the source's changes go onto the target's newest version

Available options:
replace,
merge
lands_as
enum<string>

Where a breaking or unchecked version of a public tool lands; private_copy unless new_tool

Available options:
private_copy,
new_tool
new_tool_name
string

a string at most 80 character(s) long

Required string length: 1 - 80
dry_run
boolean

Preview: the warnings and the files that would change, writing nothing

force
boolean

Accept every warning this call finds

acknowledge
enum<string>[]

Accept only these warnings

Available options:
inputs_change,
public_tool_fork,
target_changed,
target_ahead,
no_login_in_environment,
unchecked_code,
merge_conflicts
if_target_version
integer

The target's version you saw; another refuses target_moved

Required range: 1 <= x <= 1000000

Response

What it did, or would do

published: the target serves a new version. reset: it follows production again. unchanged: it already served it. preview: what a dry_run found

status
enum<string>
required
Available options:
published
tool_id
string
required

a tool ID: tool_ and 32 lowercase hex digits

Example:

"tool_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

environment
string
required
version
number
required
promoted_from
object
required
mode
enum<string>
required

replace: the target serves the source's version. merge: the source's changes go onto the target's newest version

Available options:
replace,
merge
warnings_accepted
enum<string>[]
required
Available options:
inputs_change,
public_tool_fork,
target_changed,
target_ahead,
no_login_in_environment,
unchecked_code,
merge_conflicts
lands_as
enum<string>
Available options:
public_update,
private_copy,
new_tool
merged
object