---
title: "function.run.completed"
method: POST
path: "functionRunCompleted"
---

# function.run.completed

`POST functionRunCompleted` (webhook)

This event is triggered when a function run is completed.

## Payload

- object
  - `id` string: The id of the webhook event.
  - `type` 'function.run.completed': The type of webhook event.
  - `data` FunctionRun
    - `id` string, required: A unique identifier representing this specific Function execution instance.
    - `status` 'success' | 'failure' | 'scheduled', required: The outcome of the Function execution.
    - `result` object: This field represents the output returned by the Function. This is provided only when the Function execution status is 'success'.
    - `error` object, nullable: This field details any error that occurred during Function execution. This is present only if the status is 'failure'.
      - `message` string: A concise explanation of the error that occurred during Function execution.
      - `stack` string: A trace detailing the sequence of events leading to the error, useful for debugging purposes.
    - `createdAt` integer, required: The exact time, in epoch milliseconds, when this Function execution was triggered.

---

[API](https://skmtc.dev/evervault/apis/evervault-api.md) - [All operations](https://skmtc.dev/evervault/apis/evervault-api/llms.txt) - [OpenAPI document](https://skmtc.dev/evervault/apis/evervault-api/revisions/8d0ca833fa04?raw)
