/v1/communities/{community_id}/webhooks/event-typesAuthList the events an endpoint can subscribe to.
Each type with a plain description, its group and an example `data` object (what "Send test" delivers).
Path parameters
community_id*string · uuidSocial community UUID. Must belong to the caller's workspace.
Response · 200
data*arrayEvery event type this product sends.
Example
Request
GET https://social.productcraft.co/v1/communities/{community_id}/webhooks/event-types
Authorization: Bearer YOUR_TOKENimport { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
const webhookEventTypeList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").webhooks.eventTypes.list();social.community(…).webhooks.eventTypes.list(options?): Social.WebhookEventTypeList
Response
{
"data": [
{
"type": "post.created",
"description": "A user signed up or was created by an admin.",
"category": "Users",
"example": {}
}
]
}