Skip to main content

Prerequisites

1. Open the Agents page

Navigate to app.imarobot.ai/agents and click Register Agent.

2. Fill in the details

FieldExampleNotes
NamePortfolioBotHuman-readable, shows in verification responses
Issuer domainapexwealth.comYour domain — embedded in the token
Scopesread:portfolio, read:transactionsComma-separated. Free-form strings.
DescriptionReads portfolio data from PlaidOptional but recommended

3. Copy the token

After clicking Register, you’ll see the token exactly once. Copy it immediately — it cannot be recovered.
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Store it as an environment variable in your agent process:
IMAROBOT_TOKEN=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...

4. Test the verify endpoint

curl https://api.imarobot.ai/v1/verify/$IMAROBOT_TOKEN
You should see:
{
  "valid": true,
  "agent_id": "agt_abc123",
  "name": "PortfolioBot",
  ...
}

5. Add the token to your agent’s outbound requests

Your agent should pass the token as a Bearer token when calling receiver APIs:
const response = await fetch('https://receiver-api.com/data', {
  headers: {
    'Authorization': `Bearer ${process.env.IMAROBOT_TOKEN}`,
  },
});
The receiver calls GET /v1/verify/{token} to validate it. See imarobot-verify SDK for receiver-side integration.

Next steps