Webhooks
Receive HTTP callbacks when marketplace events occur instead of polling the API.
POST
/v1/webhooksRequires writeRegister a webhook endpoint
bash
curl -X POST "https://api.midasai.tech/v1/webhooks" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production",
"url": "https://example.com/webhooks/midasai",
"events": ["listing.created", "purchase.completed"]
}'Supported events
listing.createdA new listing is submittedlisting.updatedA listing is updatedlisting.publishedA listing goes activepurchase.completedA purchase completesreview.createdA new review is postedVerifying signatures
Each webhook receives a whsec_ secret on creation. Validate the X-MidasAI-Signature header on incoming payloads before processing.