Forgejo API
GET/admin/hooks/{id}

Get a global system webhook

Retrieves a global system webhook by its identifier. Supply id to inspect the hook's type, configuration, subscribed events, activation status, and timestamps. The response includes the hook's resource URL.

1 parameter
idintegerrequired
The 64-bit integer identifier of the hook to retrieve.

1 status code
200Returns the requested hook object with its identifier, type, activation status, event list, configuration, URL, and creation and update timestamps.
activebooleanoptional
authorization_headerstringoptional
branch_filterstringoptional
configobjectoptional
Deprecated: use Metadata instead
content_typestringoptional
created_atstringoptional
eventsarray<string>optional
idintegeroptional
metadataunknownoptional
typestringoptional
updated_atstringoptional
urlstringoptional

Error handling

id must be an integer identifying the global webhook to retrieve. Use the returned hook fields to inspect its current configuration and activation state.