For developers, data engineers, architects, and agents
Wire NSTACK into the systems you already run.
Bring your data in, hand work to agents from your own systems, follow every run, route exceptions to a person, and set the limits. Plain HTTPS, one token header, your organization in the path.
Base URLYour instance answers on its own domain, written here as https://{instance}.nstack.ai.
Developers · Ways inHow your systems, your apps, and your assistants reach an instance, and the credential each one carries.
02·Guides
What you came to do.
Each guide is one job, start to finish, with the routes it takes and the credential each one needs. What is not shipped yet says so.
Connect Snowflake, Databricks, PostgreSQL, Oracle, Salesforce, S3, or an HTTP API. Define datasets, map them to your ontology, read records from code, index knowledge.
TakesMember session DevelopersShipped Trigger runs and hand work to agentsA webhook from your system, a schedule, or a message to an agent, with no one in Studio. Every start comes back as a run.
TakesMachine tokenMember session DevelopersShipped Follow every runOne record per run: state, steps, and events in order. Poll it to the end, chart it, and trace it to the request that caused it.
TakesMember session OperationsShipped Exceptions and escalationsFailures on the record, retries that never double work, and runs that wait for a person until one decides.
TakesMember session ArchitectsShipped Autonomy, permissions, and auditReads and drafts, Safe, or Autonomous, per version and environment. Roles and environments decide the rest. A chain you can verify.
TakesMember session AgentsPreview Give an assistant your agentsAny MCP client lists your agents as tools and calls them with a key your admin issues. Every call lands on the run record.
TakesMCP key03·First call
Make your first call.
One GET with your session token returns your user, your role, and your permissions. Any member can make it.
- Sign in as a member of your organization, in Studio or in your own app.
- Send the session token as
Authorization: Bearer. - Put your organization id,
org_…, in the path.
# NSTACK_BASE=https://{instance}.nstack.ai NSTACK_ORG={org_id}
curl -s "$NSTACK_BASE/core/api/v1/organizations/$NSTACK_ORG/me" \
-H "Authorization: Bearer $NSTACK_SESSION"
const base = process.env.NSTACK_BASE; // https://{instance}.nstack.ai
const org = process.env.NSTACK_ORG; // {org_id}
const res = await fetch(`${base}/core/api/v1/organizations/${org}/me`, {
headers: { Authorization: `Bearer ${process.env.NSTACK_SESSION}` },
});
const me = await res.json();
console.log(me.org.role);
import os
import requests
base = os.environ["NSTACK_BASE"] # https://{instance}.nstack.ai
org = os.environ["NSTACK_ORG"] # {org_id}
headers = {"Authorization": f"Bearer {os.environ['NSTACK_SESSION']}"}
me = requests.get(f"{base}/core/api/v1/organizations/{org}/me", headers=headers).json()
print(me["org"]["role"])
{
"user": { "id": "user_2abc", "email": "you@example.com", "name": "Your Name" },
"org": { "id": "org_2kXy", "slug": "your-firm", "role": "org:member" },
"active_org_id": "org_2kXy",
"permissions": ["…"],
"platform_admin": false
}
Session tokens last about a minute. Ask your sign-in SDK for a fresh one before each call.
04·Docs
Guides first, reference after.
Ten pages. Every route, field, and header comes from the service code, and anything not shipped yet says so.
Integrate on your own instance.
We set up your organization, its environments, and machine access with your engineers, then build the first integration together.