Build powerful integrations with our REST API. AI-powered code generation makes it even easier.
Standard REST API with JSON responses. Easy to integrate with any language.
Secure authentication using API keys. Generate and manage keys from your dashboard.
Receive real-time events when workflows complete or errors occur.
Our AI can generate integration code from natural language descriptions.
// Create a new procedure
const response = await fetch('https://api.workos.com/v1/procedures', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'Order Processing',
description: 'Automated order workflow',
steps: [
{
action: 'INPUT',
title: 'Collect Order Details',
config: {
fieldLabel: 'Order Number',
inputType: 'text'
}
}
]
})
});
const procedure = await response.json();Complete reference for all available endpoints
/v1/proceduresCreate a new procedure
/v1/proceduresList all procedures
/v1/procedures/{id}Get procedure details
/v1/runsStart a new run
/v1/runs/{id}Get run status
/v1/webhooksCreate a webhook