Fetch Webhook Topics (Events)
GET {{endpoint}}/webhooks/topics
Returns the available webhook topics as an object
a topics has the following structure entity.event
for example, let's create two topics of an API key, the response of this route looks like this
{
"api-key": [
"created",
"deleted",
"updated",
"firstUsed"
],
}
API key topics should are: ["api-key.created", "api-key.deleted", "api-key.updated", "api-key.firstUsed"]
Returns
-
200
if topics were fetched successfully -
401
if authentication fails
RESPONSES
status: OK
{"project":["updated"],"api-key":["created","deleted","updated","firstUsed"],"access-key":["created","updated","deleted"]}