Overview
Webhooks allow automatic notification of optimization progress and results. Add the following parameters when submitting an async optimization request:
| Parameter | Description |
?results={webhookURL} | The service will POST the final results to the specified URL. |
?progress={webhookURL} | The service will POST periodic progress updates. |
Example
curl -X POST "https://api.magiclogic.com/opt/v1/async?results=https://myserver.com/resulthook&progress=https://myserver.com/progresshook" \
-H "Authorization: Basic YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"load_id": "load_003",
"priority": "high"
}'