Skip to main content
POST
Add Webhook Endpoint
Create a new webhook endpoint to receive event notifications. You can specify which event types to subscribe to and configure the endpoint URL.
Limit: Each user can create up to 20 webhook endpoints.

Use Cases

  • Receive video generation completion notifications
  • Monitor task failure events
  • Track avatar creation status in real-time
  • Integrate with third-party systems

Important Notes

Webhook endpoints must be able to receive POST requests and return a 2xx status code within 5 seconds to confirm receipt.
Ensure your endpoint URL is a publicly accessible HTTPS address.

Available Event Types

Video Generation Events

Avatar Generation Events

AI Script Generation Events

Image Generation Events

Motion Generation Events

Use the List Webhook Events endpoint to get all available event types.

Webhook Signature Verification

Each webhook request includes a signature to verify the authenticity of the request source. Use the returned secret to verify the signature.

Example Request Headers

Signature Verification Examples

Go

Python

Node.js

Best Practices

Quick Response

Return 200 status code within 5 seconds

Async Processing

Return immediately, process business logic in background

Idempotent Handling

Same event may be sent multiple times, ensure idempotency

Error Retry

System automatically retries failed webhooks

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain your key from the JoggAI dashboard.

Body

application/json
url
string<uri>
required

Webhook endpoint URL that will receive POST requests

Example:

"https://your-domain.com/webhook"

status
enum<string>
required

Initial status of the webhook

Available options:
enabled,
disabled
Example:

"enabled"

events
string[]
required

List of event types to subscribe to

Example:

Response

200 - application/json

Success

code
integer
required

Business status code:

  • 0 - Success
  • 10104 - Record not found
  • 10105 - Invalid API key
  • 18020 - Insufficient credit
  • 18025 - No permission to call APIs
  • 40000 - Parameter error
  • 50000 - System error
Example:

0

msg
string
required

Response message

Example:

"Success"

data
object