An automation's run log
GET
/api/v1/automations/{id}/runs
const url = 'http://localhost:3000/api/v1/automations/example/runs';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/automations/example/runs \ --header 'Authorization: Bearer <token>'Its latest 50 runs, newest first: what set each off, and every attempt at delivering it, with the webhook’s status or the error.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Automation id
Responses
Section titled “Responses”Runs
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
status
required
Pending: delivering, or failed and tried again at nextAt; failed: after 3 attempts
string
payload
required
What the webhook posts, and what the email says
object
key
additional properties
attempts
required
createdAt
required
string format: date-time
test
required
Sent by Send a test (POST /api/v1/automations/{id}/test), with a sample event: its payload says test: true too
boolean
Example
{ "data": [ { "status": "pending" } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}