Properties
NAME | TYPE | DESCRIPTION |
$id | string | Execution ID. |
$createdAt | string | Execution creation date in ISO 8601 format. |
$updatedAt | string | Execution upate date in ISO 8601 format. |
$permissions | array | Execution roles. |
functionId | string | Function ID. |
trigger | string | The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`. |
status | string | The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`. |
requestMethod | string | HTTP request method type. |
requestPath | string | HTTP request path and query. |
requestHeaders | array | HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. Can be one of: |
responseStatusCode | integer | HTTP response status code. |
responseBody | string | HTTP response body. This will return empty unless execution is created as synchronous. |
responseHeaders | array | HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. Can be one of: |
logs | string | Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. |
errors | string | Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. |
duration | number | Function execution duration in seconds. |
Example
JSON
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"$permissions": [
"any"
],
"functionId": "5e5ea6g16897e",
"trigger": "http",
"status": "processing",
"requestMethod": "GET",
"requestPath": "/articles?id=5",
"requestHeaders": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"responseStatusCode": 200,
"responseBody": "Developers are awesome.",
"responseHeaders": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"logs": "",
"errors": "",
"duration": 0.4
}
JSON
{
"_id": "5e5ea5c16897e",
"_createdAt": "2020-10-15T06:38:00.000+00:00",
"_updatedAt": "2020-10-15T06:38:00.000+00:00",
"_permissions": [
"any"
],
"functionId": "5e5ea6g16897e",
"trigger": "http",
"status": "processing",
"requestMethod": "GET",
"requestPath": "/articles?id=5",
"requestHeaders": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"responseStatusCode": 200,
"responseBody": "Developers are awesome.",
"responseHeaders": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"logs": "",
"errors": "",
"duration": 0.4
}