Quickstart
Get started with Motia in under 60 seconds. This guide will help you create your first Motia application with HTTP endpoints and background jobs.Prerequisites
- Node.js 18+ — for TypeScript/JavaScript Steps
- Python 3.10+ — optional, for Python Steps
Installation
Install the Motia CLI
Create a new project
- Choose a language (TypeScript, JavaScript, or Python)
- Select a template (basic, api, or full-stack)
Your first Step
Let’s create a simple HTTP endpoint that returns a greeting.- TypeScript
- Python
Create
steps/hello.step.ts:steps/hello.step.ts
Test your endpoint
With the iii engine running, test your endpoint:Add a background job
Now let’s add a queue-based background job that processes messages asynchronously.- TypeScript
- Python
Create Update
steps/process-message.step.ts:steps/process-message.step.ts
steps/hello.step.ts to enqueue messages:steps/hello.step.ts
http://localhost:3113 to see the background job being processed.
What you’ve learned
✅ How to install the Motia CLI and iii engine✅ How to create a new Motia project
✅ How to create HTTP endpoints with Steps
✅ How to add background jobs with queue triggers
✅ How to enqueue messages from HTTP handlers
Next steps
Core concepts
Learn about Steps, triggers, and handlers in depth
Building APIs
Build production-ready REST APIs with validation
Background jobs
Master background job patterns and workflows
Examples
Explore more real-world examples