Code Tasks and API Calls are both ways to make your workflows smarter and more automated. They let you process data, apply logic, and connect systems together. The difference is where the work happens.
A Code Task handles logic and data inside Process Street, while an API Call connects your workflow to something outside Process Street.
Knowing which to use helps you keep your workflows efficient, predictable, and easy to maintain.
A Code Task is best when you need to run logic or data operations that don’t require reaching another system.
It runs directly inside your workflow using JavaScript and is ideal for quick processing or validation.
Use a Code Task when you want to
Code Tasks are faster and simpler because they don’t depend on an internet request. Everything runs locally inside the workflow run.
Example use cases
An API Call is best when your workflow needs to talk to another system. It sends or retrieves data using that system’s API, letting you connect Process Street with your existing stack.
Use an API Call when you want to
API Calls require an internet connection and the correct credentials or API keys for the system you’re calling.
Example use cases
If your task is about logic, calculations, or transformations, use a Code Task.
If it’s about communication or integration, use an API Call.
You can also combine them. A Code Task can prepare or format data, and an API Call can send that data to another tool.
Help us improve this help center.