---
title: "Notify multiple intents in bulk"
description: "Send back-in-stock notifications for multiple intents in one request. Each intent is processed independently; the response reports which succeeded and which failed, returning 207 when only some succeed. Set allow_resend "
url: https://docs.stoqapp.com/v1/back-in-stock/notify-multiple-intents-in-bulk/
api: "API v1 (legacy)"
method: POST
path: "/external/intents/bulk_notify_intent"
---

# Notify multiple intents in bulk

`POST https://app.stoqapp.com/api/v1/external/intents/bulk_notify_intent`

Send back-in-stock notifications for multiple intents in one request. Each intent is processed independently; the response reports which succeeded and which failed, returning 207 when only some succeed. Set `allow_resend` to true to re-notify intents that were already sent.

## Request body

- `intent_ids` (array of strings): Array of intent IDs
- `allow_resend` (boolean): Allow resending notifications

## Returns

- `success` (array of strings)
- `failed` (array of objects)
  - `intent_id` (string): e.g. `1a2b3c4d-5e6f-7081-92a3-b4c5d6e7f809`
  - `error` (string): e.g. `Already notified`

Rate limit: this call costs 2 points ([rate limits](https://docs.stoqapp.com/docs/rate-limits/)).

## Example request

```sh
curl -X POST "https://app.stoqapp.com/api/v1/external/intents/bulk_notify_intent" \
  -H "X-Auth-Token: $STOQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "intent_ids": [
      "8f3c2b1a-7d4e-4c2a-9f10-2b3c4d5e6f70",
      "1a2b3c4d-5e6f-7081-92a3-b4c5d6e7f809"
    ],
    "allow_resend": false
  }'
```

## 200

All notifications sent successfully

```json
{
  "success": [
    "8f3c2b1a-7d4e-4c2a-9f10-2b3c4d5e6f70"
  ],
  "failed": [
    {
      "intent_id": "1a2b3c4d-5e6f-7081-92a3-b4c5d6e7f809",
      "error": "Already notified"
    }
  ]
}
```

## 207

Partial success (some notifications failed)

```json
{
  "success": [
    "string"
  ],
  "failed": [
    {
      "intent_id": "string",
      "error": "string"
    }
  ]
}
```

## 400

Bad request

## 401

Unauthorized

