SynapseDocumentation
Get Started

For Agent Builders

Give an AI agent a bounded USDC budget and let it buy APIs safely.

Flow

  1. Authenticate the owner wallet.
  2. Deposit USDC into SynapseCore.
  3. Issue an agent credential with a credit limit.
  4. Discover callable services.
  5. Invoke a service through Gateway with the discovered live price.
  6. Store the receipt for audit and retry policy.
const service = await client.services.discover({ searchQuery: 'sentiment' });
const credential = await client.credentials.issue({ creditLimitUsdc: '5.00' });
const receipt = await client.agent.invoke({
  credential: credential.token,
  serviceId: service.services[0].serviceId,
  input: { text: 'agents need wallets' },
  costUsdc: service.services[0].pricing.amount,
});

On this page