The Nex Developer API provides programmatic access to your workspace’s context graph — the unified knowledge base Nex builds from your connected tools and ingested context. Use it to ingest new context, query the graph, manage entities and relationships, and stream AI-derived insights back into your own systems. Generate API keys from the Nex web UI and use them to authenticate requests.
Nex models your workspace as a knowledge graph. Entities are the nodes, relationships are the edges, and both are typed by definitions you control. The API lets you:
Define object types and their attributes (the graph’s schema)
Create records — the actual entities in the graph
Connect entities with typed relationships
Attach tasks, notes, and timeline events to any entity
Ingest unstructured context that is parsed, linked, and compounded into the graph over time
Objects define the schema of entities in your graph. Think of them as the blueprints for the nodes Nex will store, query, and connect.Starter object types:
Person: individuals with attributes like name, email, job title, and links to other entities
Company: organizations with attributes like name, domain, and industry
Every workspace can extend the graph with its own object types via the Schema endpoints — for example, Project, Incident, or Playbook — each with their own attributes and relationships.
Note: For many attribute types like full_name, phone, and location, you can use either simple string values (e.g., "John Smith") or structured objects (e.g., {"first_name": "John", "last_name": "Smith"}). The API accepts both formats.
Relationships define how object types relate to each other (e.g., Person → Company). You can create relationship definitions between any two object types, then create instances linking specific records.Relationship types:one_to_one, one_to_many, many_to_many
Lists group records into working sets — the slices of the graph your agents, workflows, or external systems need to operate on. Each list is associated with a specific object type.
Tasks are actionable items that can be associated with records and assigned to users. Tasks support priorities (low, medium, high, urgent), due dates, and completion tracking. Deleting a task archives it (soft delete).
The timeline provides a chronological activity feed for any record, including tasks, notes, attribute changes, and relationship events. Supports cursor-based pagination.
Integrations are how the context layer pulls in signal. Connect your workspace to the tools where work happens — email, calendar, messaging, and other systems listed below — and Nex continuously ingests, parses, and links that activity into your knowledge graph.Supported integrations:
Type
Provider
Name
Connect method
email
google
Gmail
Direct OAuth
calendar
google
Google Calendar
Direct OAuth
email
microsoft
Outlook
Direct OAuth
calendar
microsoft
Outlook Calendar
Direct OAuth
messaging
slack
Slack
Direct OAuth
crm
attio
Attio
Direct OAuth
crm
hubspot
HubSpot
Nango-brokered OAuth
crm
salesforce
Salesforce
Nango-brokered OAuth
messaging
whatsapp
WhatsApp Business
Config-based
OAuth flow (applies to Direct OAuth and Nango-brokered providers):
Call POST /v1/integrations/{type}/{provider}/connect to get an auth_url and connect_id
Open the auth_url in a browser for the user to authorize
Poll GET /v1/integrations/connect/{connect_id}/status until status is "connected"
WhatsApp uses a config-based connect flow rather than OAuth — contact Nex support for setup.
The knowledge graph is the unified view of every entity in your workspace and how they connect. It combines the typed relationships you define through the Schema API (e.g., person works_at company) with AI-extracted knowledge from ingested context — triplet relationships, entity insights, and semantic links between insights. The endpoint supports both JSON output for programmatic access and an interactive HTML visualization. See Get knowledge graph.
The compounding pipeline continuously refines your workspace’s intelligence by consolidating duplicate insights, detecting patterns, synthesizing playbooks, and decaying stale data. Use the Trigger compounding job endpoint to start these intelligence jobs on demand, then poll Get compounding job status for completion and final metrics.