Webhook
Loại sự kiện
Các loại sự kiện endpoint đăng ký được.
GET
https://api.sangtao.ai/v2/webhooks/event-typesXác thực
X-Api-Keystring · headerbắt buộcAPI key của bạn, tạo ở trang API key trong tài khoản.
data là mảng các loại sự kiện endpoint đăng ký được — giá trị dùng cho events.
Sự kiện, chữ ký và cách thử lại: Webhook.
GET
/webhooks/event-typescurl "https://api.sangtao.ai/v2/webhooks/event-types" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": [
"image.completed",
"image.failed",
"video.completed",
"video.failed",
"post.published",
"post.failed",
"social_account.needs_attention"
]
}GET
/webhooks/event-typescurl "https://api.sangtao.ai/v2/webhooks/event-types" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": [
"image.completed",
"image.failed",
"video.completed",
"video.failed",
"post.published",
"post.failed",
"social_account.needs_attention"
]
}