curl --request POST \
--url https://api.jogg.ai/v1/endpoint \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"url": "https://example.com/webhook",
"events": [
"generated_video_success"
],
"status": "enabled"
}'
{
"endpoint_id": "b1ac30a401234c96ad128303dfb431e2",
"url": "https://example.com/webhook",
"secret": "your-secret-key",
"status": "enabled",
"events": [
"generated_video_success"
],
"username": "jogg@gmail.com",
"created_at": 1703894400
}
Add a new webhook endpoint configuration
curl --request POST \
--url https://api.jogg.ai/v1/endpoint \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"url": "https://example.com/webhook",
"events": [
"generated_video_success"
],
"status": "enabled"
}'
{
"endpoint_id": "b1ac30a401234c96ad128303dfb431e2",
"url": "https://example.com/webhook",
"secret": "your-secret-key",
"status": "enabled",
"events": [
"generated_video_success"
],
"username": "jogg@gmail.com",
"created_at": 1703894400
}
Successful operation
The response is of type object
.