logs

The last messages sent to one destination of this alert in the past 7 days, newest first, on both delivery paths, with whether each one succeeded.

get/api/projects/{project_id}/logs/alerts/{id}/destinations/sends/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/logs/alerts/{id}/destinations/sends/
  • Auth: HTTP bearer

Path parameters

idstring uuid required

A UUID string identifying this logs alert configuration.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Query parameters

hog_function_idsstring[] required

HogFunction IDs of one destination group. IDs that are not this alert's are ignored.

Response

hog_function_idstring required

The HogFunction the message was sent for. It names the lifecycle event that was sent.

sent_atstring date-time required

When the send started.

path'native' | 'hog_function' required
  • native - Native
  • hog_function - HogFunction
succeededboolean required

Whether the destination accepted the message.

errorstring nullable required

Why a native send failed. Null when it succeeded, and for a hog_function send, whose reason is in the HogFunction's own logs.

Changes