Noddocs

API reference

Everything you need to connect your agent to Nod

Overview

Your agent communicates with Nod through a REST API, a persistent WebSocket connection, and webhooks. All endpoints use the same authentication: your agent ID and secret.

Your agent
CLI, server, workflow
Nod API
REST + WebSocket
Nod app
Mobile / Web / Desktop

Base URL

https://api.asknod.ai

For local development, set NOD_API_URL:

NOD_API_URL=http://localhost:8000

# WebSocket: wss://api.asknod.ai/ws/agent/{agent_id}

Authentication

Every request includes two headers:

HeaderDescription
X-Nod-Agent-IdYour agent's unique identifier
X-Nod-SecretYour agent's secret key

You get both when you create an agent in the Nod app. See Authentication for code examples.

Error handling

{ "detail": "Human-readable error message" }
StatusMeaning
400Bad request — missing or invalid fields
401Invalid or missing credentials
403Not authorized for this resource
404Not found
409Conflict — already exists or already resolved

API resources