Welcome to the Nen API
The Nen API enables you to programmatically trigger and manage automated workflows. Built for reliability and ease of use, our API uses simple REST principles with JSON payloads and standard HTTP response codes.Two API surfaces
Nen’s HTTP API has two surfaces. Both live on the same host and share the same auth header — only the paths differ.| Surface | Base URL | Auth header | What it does |
|---|---|---|---|
| Managed workflows | https://api.getnen.ai | x-api-key: <key> | Trigger workflow runs, receive webhook callbacks. This page and the endpoints under /api-reference/endpoint/ document this surface. |
| Desktop API | https://api.getnen.ai | x-api-key: <key> | Create, list, and control cloud desktops; discover and execute computer tools. Documented in Computer-Use Desktops and Tools. |
Quick Start
Get started with the Nen API in three steps:Get your API key
Retrieve your API key from your engineering contact. Keep this secure and never expose it in client-side code.
Start a workflow run
Use the Start a Workflow Run endpoint to trigger your workflow with the required parameters.
Handle webhook callbacks
Implement a webhook endpoint to retrieve workflow payloads such as documents and execution results.
Core Endpoints
Start a Workflow Run
Trigger workflow execution with custom parameters
Webhook Integration
Receive real-time status updates and results
Authentication
All API requests require authentication using an API key sent in thex-api-key header.
Response Format
All API responses use JSON format with standard HTTP status codes:- 2xx: Success - Your request was processed successfully
- 4xx: Client Error - There was an issue with your request
- 5xx: Server Error - Something went wrong on our end
Success Response Example
Error Response Example
Workflow Execution Flow
Submit workflow
POST to
/runs with your workflow ID, parameters, and webhook callback URL. You’ll receive an immediate 202 Accepted response with a unique messageId.Processing begins
Your workflow starts executing in the background. You’ll receive a webhook callback with status
processing.Best Practices
Use environment variables
Use environment variables
Store your API key and webhook URLs in environment variables, not in your source code.
Implement webhook signature verification
Implement webhook signature verification
Always verify webhook signatures to ensure requests are genuinely from Nen. See the Webhook Security section for implementation details.
Monitor webhook delivery
Monitor webhook delivery
Set up monitoring to alert you if webhooks stop arriving. This helps catch issues with your webhook endpoint early.
Need Help?
Start a Workflow Run
Detailed guide with code examples
Webhook Integration
Complete webhook implementation guide