/v1/workspaces/{workspace_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
workspace_id*string · uuidId of the workspace.
Response · 200
data*arrayEvery event type this product sends.
Example
Request
GET https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/webhooks/event-types
Authorization: Bearer YOUR_TOKENimport { Flags } from "@productcraft/flags";
// Reads PRODUCTCRAFT_API_KEY from the environment
const flags = new Flags();
const webhookEventTypeList = await flags.webhooks.eventTypes.list();flags.webhooks.eventTypes.list(options?): Flags.WebhookEventTypeList
Response
{
"data": [
{
"type": "config.published",
"description": "A user signed up or was created by an admin.",
"category": "Users",
"example": {}
}
]
}