function.run.completed

This event is triggered when a function run is completed.

postWebhookfunctionRunCompleted

Payload

idstring

The id of the webhook event.

type'function.run.completed'

The type of webhook event.

Example payload

{
  "data": {
    "id": "func_run_eead1d640d7c",
    "status": "success",
    "result": {
      "message": "Hello, World"
    },
    "error": {
      "message": "Some error message!",
      "stack": "Error: Some error message!\n    at exports.handler (/runtime/app/index.js:5:11)\n    at /runtime/index.js:64:26\n    at new Promise (<anonymous>)\n    at /runtime/index.js:51:16"
    },
    "createdAt": 1692972623233
  }
}

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.