Midjourney Webhook
With PiAPI's Midjouerney API webhook , you can automatically receive notifications on the outcomes of tasks, whether they complete successfully or encounter errors, ensuring you stay informed in real time.
Set up webhook
{
"webhook_endpoint": "http://example.com",
"webhook_secret": "hello",
"notify_progress": true
}
properties | type | required? | Explanation |
---|---|---|---|
webhook_endpoint | string | required | This is the URL where webhook notifications will be sent. It needs to be a valid URL that begins with either http:// or https:// and uses port 80 or 443. |
webhook_secret | string | optional | A secret key defined by the user. This key is included in the header of webhook requests as x-webhook-secret, allowing the user to verify that the request comes from a trusted source. |
notify_progress | boolean | optional | Default to false. If set to true, progress update webhook for the task will also be sent, resulting in multiple webhook events and additional statuses for a single task that the user will need to manage. |
Receive notifications
The request body corresbonds to v2 fetch API response JSON format.
Retry
intermediate_urls working with webhook
1.
2.
notify_progress
is set to true
, then our application will trigger the webhook to send you a HTTPS POST every time the task_progress
parameter value updates. Please note that task_progress does not equal to valid intermediate urls available.Compatible endpoints
1.
Modified at 2024-10-17 15:25:24