Create an alert
create_alertAn alert for new procurements by object terms and state (UF). Use the account session or guest token. Channels: pull, signed webhook or email. Name, organization and email recipients are optional. Two modes. By termos: a space requires all groups; | accepts alternatives within a group. By cnpj: known activity families produce alerts, up to max_familias. Unmapped activities remain in the response without an alert. The cron checks every 30 minutes. Email requires an account session and EMAIL_ALERTAS=1. It uses explicit recipients or the verified account email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uf | No | State (UF) abbreviation (optional). | |
| nome | No | Alert name, up to 100 characters. | |
| canal | No | pull, webhook or email (default pull). | pull |
| termos | Yes | Object words, 3 to 200 letters; a space means all, | means any (uniforme|fardamento). | |
| destino | No | HTTPS webhook URL. Ignored for pull and email. | |
| filtros | No | Extra filter: modalities, municipalities, exclusions, values, open proposals and CNAEs. PATCH replaces the whole filter; {} clears it. | |
| destinatarios | No | Email recipients: `para`, `cc` and `bcc` arrays. Up to 10 distinct addresses in total. An empty `para` list uses the account email. PATCH replaces all three lists. BCC is hidden from other recipients. | |
| organizacao_id | No | Organization from `GET /api/me/empresas`. Membership and MFA are checked. Null removes the label. This does not share alert ownership. |