Skip to main content
List webhook targets using cursor pagination. Required scope: admin
targets = await mesa.webhook_targets.list(limit=50)

for target in targets.webhook_targets:
    print(target.id, target.url, target.events)

Options

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

Response

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

WebhookTarget

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