/v1/workspaces/{workspace_id}/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. The same endpoints as `/v1/communities/{community_id}/webhooks`; this path also accepts a console session.
workspace_id*undefined · uuidWorkspace UUID the community belongs to.
Response · 200
data*arrayEvery event type this product sends.
Example
Request
GET https://social.productcraft.co/v1/workspaces/{workspace_id}/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.communities.webhooks.eventTypes.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");social.communities.webhooks.eventTypes.list(communityId, options?): Social.WebhookEventTypeList
Response
{
"data": [
{
"type": "post.created",
"description": "A user signed up or was created by an admin.",
"category": "Users",
"example": {}
}
]
}