Webhooks
Event types
The event types an endpoint can subscribe to.
GET
https://api.sangtao.ai/v2/webhooks/event-typesAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
data is an array of the event types an endpoint can subscribe to — the values events takes.
Events, the signature and retries: 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"
]
}