Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/directus/directus/llms.txt

Use this file to discover all available pages before exploring further.

Operations are the building blocks within flows.

List Operations

GET /operations
Example:
curl "https://your-directus-instance.com/operations" \
  -H "Authorization: Bearer YOUR_TOKEN"

Get Operation

GET /operations/:id

Create Operation

POST /operations
Request Body:
{
  "name": "Send Email",
  "key": "send_email",
  "type": "mail",
  "position_x": 10,
  "position_y": 10,
  "options": {
    "to": "user@example.com",
    "subject": "Welcome",
    "body": "Hello {{$trigger.name}}!"
  },
  "flow": "flow-uuid"
}

Update Operation

PATCH /operations/:id

Delete Operation

DELETE /operations/:id

Operation Types

  • Condition - Conditional logic
  • Exec - Execute Node.js code
  • Item Create - Create items
  • Item Read - Read items
  • Item Update - Update items
  • Item Delete - Delete items
  • Log - Log messages
  • Mail - Send emails
  • Notification - Send notifications
  • Request - HTTP requests
  • Sleep - Delay execution
  • Transform - Transform data
  • Trigger - Trigger another flow

Operation Properties

id
string
Operation UUID
name
string
Operation name
key
string
Unique key for referencing
type
string
Operation type
flow
string
Parent flow UUID
options
object
Operation-specific configuration

Next Steps

Flows

Manage flows

Flow Automation

Learn about automation