v6

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

File Created

This event is triggered when a file is created in the system.

postWebhookfile.created

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'file.created' required

The type of the event

Example payload

{
  "id": "event_euyrvozb9302uwhq",
  "type": "file.created",
  "data": {
    "id": "file_euyrvozb9302uwhq",
    "name": "generated-file",
    "type": "image/png",
    "properties": {
      "width": 1920,
      "height": 1080,
      "size": 1024
    },
    "task_id": "task_euyrvozb9302uwhq"
  },
  "timestamp": "2023-10-01T12:00:00Z"
}

Response

Webhook received successfully