> ## Documentation Index
> Fetch the complete documentation index at: https://docs.selltrust.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Enviar Campanha

Coloca a campanha na fila de envio agora. O público é calculado neste momento e `total_recipients` já volta na resposta. Os emails começam a sair em até um minuto, aos poucos, pela mesma fila e cota do painel.

Retorna `400` se nenhum cliente corresponde ao público ou se a campanha já foi enviada ou cancelada.

> [!WARNING]
>
> Depois de iniciado, o envio pode ser interrompido com [Cancelar](https://docs.selltrust.com.br/api-reference/campaigns/cancel.md), mas os emails que já saíram não voltam.

> [!NOTE]
>
> Exige a permissão **Gerenciar Marketing** (`MANAGE_MARKETING`) do usuário que criou o token. Veja [Permissões do token](https://docs.selltrust.com.br/api-reference/permissions.md).

**Authorization** `string` *required*

Token de API no formato `Bearer stk_live_...`.

**id** `string` *required*

ID da campanha (rascunho ou agendada).

```json Response theme={null}
{
  "id": "uuid-da-campanha",
  "store_id": "uuid-da-loja",
  "name": "Lançamento de novembro",
  "subject": "Novidades para você, {{ customer.first_name }}",
  "html": "<!doctype html>\n<html lang=\"pt-BR\">…</html>",
  "audience": {
    "match": "ALL",
    "rules": [
      {
        "type": "PURCHASED_LAST_DAYS",
        "days": 30
      },
      {
        "type": "TOTAL_SPENT",
        "operator": "GT",
        "value": 300
      }
    ]
  },
  "status": "SENDING",
  "scheduled_at": null,
  "started_at": "2026-11-10T15:00:00.000Z",
  "finished_at": null,
  "canceled_at": null,
  "total_recipients": 128,
  "sent_count": 0,
  "failed_count": 0,
  "skipped_count": 0,
  "error": null,
  "created_by": "uuid-do-usuario",
  "created_at": "2026-11-10T14:30:00.000Z",
  "updated_at": "2026-11-10T14:30:00.000Z",
  "pending_count": 128,
  "attributed_orders": 0,
  "attributed_revenue": 0
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.