v6

latestOpenAPI 3.1.0raw.githubusercontent.com2025-06-241833312.7 KB
Tasks Events

Task Completed

This event is triggered when a task is completed in the system.

postWebhooktask.completed

Payload

idstring required

The id of the event

timestampstring required

The timestamp of the moment when the event was created in ISO 8601 format

type'task.completed' required

The type of the event

Example payload

{
  "id": "event_euyrvozb9302uwhq",
  "type": "task.completed",
  "data": {
    "id": "task_euyrvozb9302uwhq",
    "operation": "apply-effect",
    "result": {
      "generated_files": [
        {
          "id": "file_euyrvozb9302uwhq",
          "name": "Example Image",
          "type": "image/png",
          "properties": {
            "size": 1024,
            "width": 800,
            "height": 600
          },
          "task_id": "task_euyrvozb9302uwhq",
          "created_at": "2021-05-01T12:00:00Z"
        }
      ]
    }
  },
  "timestamp": "2023-10-01T12:00:00Z"
}

Response

Webhook received successfully