Account/Info calls into a small browser application with a trusted Node.js backend.
The Agent API is Neuro’s primary HTTP API. Its name is unrelated to AI agents: the application acts through the Neuron’s Agent endpoint instead of connecting directly over XMPP and managing the corresponding private keys itself.
Architecture
Account/Info. The browser receives only an allowlisted projection of the result.
1. Open the project
After cloning this documentation repository, change into the sample directory:2. Run the deterministic checks
With Node.js 20.6 or later:3. Configure a development Neuron
Copy the environment template:.env:
NEURON_HOST is a host with an optional port. Do not include https:// or a path. The .env file is ignored by Git.
4. Start the application
http://127.0.0.1:3000, then select Load safe account fields. Success shows the username and available account timestamps. The source email address, phone number, password, and JWT never enter the browser response.
Keep credentials on the backend
This sample deliberately:- binds only to
127.0.0.1; - rejects a host containing a scheme, path, or whitespace;
- sends credentials only from the backend to the configured HTTPS Neuron;
- returns
Cache-Control: no-storefor JSON; - applies a restrictive browser Content Security Policy;
- returns a generic
502response when the Neuron rejects or cannot complete the request.
Next
- Read Build your first Neuro application for the persistence and workflow checkpoints.
- Review What can I build? and choose a capability supported by your Neuron.
- Use the Agent API reference for documented methods, fields, and response schemas.