save_agent with no agentId to register a private agent in your
organization’s Agents account. Name that account with accountId on the call
(see Name the account on every call). If your
organization does not have an Agents account, create it from the organization’s
Accounts screen or with save_account in the organization account.
Supply a unique idempotencyKey. Repeating the exact request returns the
original agent with created: false. Registering records the agent’s identity
only. It never publishes the agent, connects a source or asks for credentials.
You can register a sales or a creative agent this way. To set up a buyer
agent, use save_buyer_agent and see
Buyer-agent credentials instead.
This is available only to an account admin who is signed in as themselves.
Service tokens and delegated sessions cannot register agents. See
Who can do what with an agent.
Register an agent
If you already run the agent, send its
agentUrl instead of kind and
displayName: Apostra reads the agent and registers what it finds. An
operator cannot be sent with an agentUrl. See
Connect an agent from its URL.
To register a proposal agent, which is registered from its URL so Apostra can
check that it answers proposal requests, see
Connect your own proposal agent.
What comes back
A new registration and an exact replay both return the agent instructuredContent:
href is a handoff target for the agent’s page in the web app. It is not a
public agent URL. To open the page from a chat host, call open_agent_page with
the agentId.
When a registration is refused
- The input is malformed: an empty name, a
salesModeon a creative agent, or anoperatorthat is not one of the two shapes. The error isVALIDATION_FAILEDand names the field. - The caller is not a signed-in admin of the Agents account, or the account named is not an Agents account. Name the organization’s Agents account, or create one first.
- The requested existing operator is not owned and claimed by your organization.
- The
idempotencyKeywas used before with different input, or aNEWoperator’s name duplicates an active operator in your organization. Select the existing claimed operator instead.
An operator Apostra mapped and nobody has claimed
Apostra sometimes maps a known operator to your organization before anyone on your team claims it, for example from an audited legacy integration. An agent behind a mapped but unclaimed operator is marked Apostra mapped · unclaimed in My agents. It cannot receive production revisions, certification or new connections until an organization admin claims it. Claiming keeps the operator’s identity, revisions, bindings and history. It never creates a second copy.operator.kind: "EXISTING" accepts only a claimed operator, because registering
a new agent under an unclaimed operator would duplicate an identity Apostra
already knows about. Claim the mapped operator first, then register the agent
under it. See
Claim an agent Apostra mapped to your organization.
Open the registration from a chat host
open_create_agent_task opens the Connect an agent task for an account admin,
on the organization MCP surface. See
Connect an agent in an Agents account
for the task, and the other ways to start.