Skip to content

Notify a single intent

API v1 is the older API. It still works, but new integrations should use API v2. Migrating from v1 to v2

POST/external/intents/notify_intent

Costs 2 rate-limit points · Rate limits

Send the back-in-stock notification for a single intent immediately, regardless of current inventory. By default an intent that has already been notified will not be sent again; set allow_resend to true to force a resend. Returns 404 if the intent does not exist and 422 if the notification could not be sent.

Request body

  • idstring

    Intent ID

  • allow_resendboolean

    Allow resending notification

Returns

  • successboolean
    Example: true
  • intent_idstring
    Example: 8f3c2b1a-7d4e-4c2a-9f10-2b3c4d5e6f70

Errors

401

Unauthorized

404

Intent not found

422

Failed to notify intent

POST/external/intents/notify_intent
curl -X POST "https://app.stoqapp.com/api/v1/external/intents/notify_intent" \
  -H "X-Auth-Token: $STOQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "8f3c2b1a-7d4e-4c2a-9f10-2b3c4d5e6f70",
    "allow_resend": false
  }'
Response
{
  "success": true,
  "intent_id": "8f3c2b1a-7d4e-4c2a-9f10-2b3c4d5e6f70"
}