Skip to main content
List configured webhook targets using cursor pagination. Required scope: admin
const targets = await mesa.webhookTargets.list({ limit: 50 });

for (const target of targets.webhook_targets) {
  console.log(target.id, target.url, target.events);
}

Options

org
string | undefined
Organization override.
cursor
string | undefined
Opaque pagination cursor from a previous response.
limit
number | undefined
Maximum number of targets to return. The server maximum is 100.

Response

next_cursor
string | null
Cursor for the next page, or null when no more results remain.
has_more
boolean
Whether another page of results is available.
webhook_targets
WebhookTarget[]
Webhook target objects.

WebhookTarget

id
string
Webhook target ID.
name
string | null
Webhook target name, or null when unnamed.
url
string
Delivery URL.
events
string[]
Event names delivered to this target.
repo_ids
string[] | null
Repository allowlist, or null when the target receives events for all repositories.
created_at
string
Creation time.
updated_at
string
Last update time.