Quickstart
Overview
Configure, deploy, and talk to your first agent in a few minutes.
This quickstart walks you through the full end-to-end flow against the Nairi API:
- Create an agent and attach a rule and a vault.
- Deploy the agent so it starts answering prompts.
- Start a conversation, wait for the reply, and send a follow-up.
Every step shows the equivalent code in bash, TypeScript, Ruby, Python, and Go, so you can drop the snippets straight into whatever you're building.
Prerequisites
-
A Nairi organization with an API key. Generate one from your organization's settings in the Nairi dashboard.
-
The API key exported as
NAIRI_API_KEYin your shell or process environment:export NAIRI_API_KEY=your-key-here -
For the bash flow you'll also need
curlandjqinstalled locally.
Treat API keys like passwords. Never commit them to source control. If a key is compromised, revoke it from the dashboard.
Base URL
All endpoints below are served from:
https://api.nairi.ai/api/public/v1