Start a Workflow Run
Trigger a workflow execution and receive status updates via webhooks. This endpoint returns immediately with a 202 Accepted response. The actual workflow execution happens in the background.
Next Steps
After starting a workflow run, you’ll receive status updates at your webhook endpoint as the job progresses.Handle webhook callbacks
Best Practices
Store the message ID
Store the message ID
messageId in your database. You’ll need it to:- Correlate webhook callbacks with the original request
- Track workflow status
- Debug issues with support
Validate parameters before sending
Validate parameters before sending
Use environment variables for sensitive data
Use environment variables for sensitive data
Troubleshooting
Request times out
Request times out
- Check your internet connection
- Verify the API endpoint URL is correct
- Increase the request timeout in your HTTP client
- Check if there are any network restrictions or firewalls
Invalid workflow parameters
Invalid workflow parameters
- Check your workflow configuration to see required parameters
- Ensure parameter names match exactly (case-sensitive)
- Verify data types are correct (strings, numbers, booleans)
- Remove any extra parameters not defined in the workflow
Webhook URL not accessible
Webhook URL not accessible
- Ensure your webhook URL is publicly accessible
- Test your webhook URL with tools like webhook.site
- Check firewall rules and security groups
- Verify SSL certificate is valid
- Ensure your server can handle POST requests
Authorizations
Your Nen API key. Requests that include secure_workflow_params must additionally be HMAC-signed — see Secure Parameters.
Body
Workflow run configuration
Unique identifier for the workflow to execute
"12345678-1234-1234-1234-123456789abc"
Parameters passed to your workflow's Params model. Must match the Pydantic shape the workflow declares.
{
"PATIENT_NAME": "Jane Doe",
"DATE_OF_BIRTH": "1990-01-15"
}Secret parameters passed to your workflow's SecureParams model. Requires HMAC-signed requests — see Secure Parameters. Rejected with 403 when sent using only x-api-key.
{ "password": "s3cret-passw0rd" }URL where status updates will be sent. When omitted, results are only available via the retrieval endpoint.
"https://your-domain.com/webhook"
Response
Job accepted for processing