Call Node as a Function (API)
Call an AI node from your server-side code to power product features, automate workflows, or process data with a simple REST API.
What this solves
Add AI to my backend
Call AI from server-side code
REST API for AI chatbot
Programmatic AI integration
Frequently Asked Questions
Call Node as a Function (API)
How do I call an Interlocute node from my server?
Send a POST request to your node's /chat endpoint with an Authorization header containing your secret API key. The request body includes the user message and an optional thread ID. The response is streamed back via SSE or returned as a complete JSON payload.
What languages and frameworks are supported?
Any language or framework that can make HTTP requests works. The API uses standard REST conventions with JSON payloads and SSE streaming. No SDK is required, though you can use one if available.
Can I use threads to maintain conversation state?
Yes. Pass a threadId in your request to continue an existing conversation. Interlocute manages the full conversation history, memory, and context automatically. Create new threads by omitting the threadId.
Is the API key secure?
Secret API keys should only be used from server-side code. They are never exposed to browsers. Keys can be rotated at any time from the dashboard and scoped with usage limits for additional safety.
How is usage billed for API calls?
API calls are metered the same as all other node interactions: a small platform premium on LLM tokens plus computation charges. Every call is logged in your usage ledger with full cost attribution.
Ready to build?
Deploy your node in seconds and start using Call Node as a Function (API) today.