1. Create the agent
Sign in to your business as an owner and select Sandbox. Open Agents and select Create agent. If this is your account’s first agent, claim a handle prefix such asjuniper.
You can’t change the prefix later. Give the agent a name, a handle such as
juniper-billing, and a description of its task.
Choose View customers (customers:read) and a key expiry, then finish.
Copy the key now. It’s shown only once. Test agent keys start
with ak_v1_test_.
Admins can create agents, but only an owner can issue the key, from the
agent’s Keys tab.
2. Make a test request
Store the key in your runtime’s secret storage asAGENT_KEY.
- The agent is allowed in Sandbox.
- Its access and its key both include
customers:read. - The agent isn’t suspended.
3. Give it a task
- Invoices and checkout: add the permissions and issue a key that includes them. See Connect your AI agent.
- Other businesses: use your platform’s agent and ask each business to approve it. See Connect your platform’s AI agent.
- Purchases: give the agent access to a business card and have the owner approve each purchase. See Agent purchases.
A key keeps the permissions it was issued with. After you add a permission,
issue a new key. Agent writes also need an
Idempotency-Key; reuse it when you
retry the same request.Create agents from your platform’s server
Platforms can create agents withPOST /v1/agents, using a platform secret key
with agents:write. Claim your handle prefix in the dashboard first. The API
creates the identity; an owner issues its key in the dashboard. See
Manage your platform’s agents for the
request and response.
If you use an assistant that supports MCP, see
Connect an AI agent over MCP. The connection
creates the agent for you.
