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

# 创建表单通知

> POST /forms/notification/

创建一个定期表单报告通知。

<Note>
  需要具有 `MANAGEMENT_API`（或 `MANAGEMENT_API_SANDBOX`）配额和 `LEAD_GENERATION_EMAIL_REPORT_CAN_CREATE_UPDATE` 权限的管理 API 密钥，作为原始 `Authorization` 标头值发送 —— 参见[管理 API 概述](/zh/api-reference/management-api/overview)。
</Note>

<ParamField body="name" type="string" required>
  通知的内部名称。
</ParamField>

<ParamField body="to" type="string" required>
  收件人电子邮件地址。
</ParamField>

<ParamField body="cc" type="string">
  抄送电子邮件地址。
</ParamField>

<ParamField body="bcc" type="string">
  密送电子邮件地址。
</ParamField>

<ParamField body="frequency" type="integer" required>
  [列出表单通知频率](/zh/api-reference/management-api/form-notifications/frequency)中的某个 `key` 值。
</ParamField>

<ParamField body="form_ids" type="array" required>
  此通知所涵盖的 `form_id` 字符串数组。仅写入 —— 响应会改为在 `form_list` 下反映已解析的表单。
</ParamField>

<ParamField body="is_active" type="boolean" default="true">
  通知当前是否已启用。
</ParamField>

<ParamField body="slack_workspace" type="integer">
  已连接的 Slack 工作区 id，用于同时通过 Slack 发送。
</ParamField>

<ParamField body="slack_channel_ids" type="array">
  当设置了 `slack_workspace` 时，要发布到的 Slack 频道 id。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.scanova.io/forms/notification/' \
    --header 'Authorization: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "name": "Weekly Booth Signups",
      "to": "sales@example.com",
      "cc": "manager@example.com",
      "frequency": 3,
      "form_ids": ["F8a9b0c1d2e3f4g5h"],
      "is_active": true
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": 21,
    "name": "Weekly Booth Signups",
    "to": "sales@example.com",
    "cc": "manager@example.com",
    "bcc": null,
    "frequency": 3,
    "frequency_display": "Once a Week",
    "form_list": [{ "form_name": "Booth Signup", "form_id": "F8a9b0c1d2e3f4g5h" }],
    "is_active": true,
    "slack_workspace": null,
    "slack_channel_ids": null,
    "created_by": { "id": 41, "email": "you@example.com" },
    "created": "2026-09-08T10:05:00+05:30",
    "modified": "2026-09-08T10:05:00+05:30"
  }
  ```
</ResponseExample>

如果账户计划的邮件报告配额已用尽（与[潜在客户通知](/zh/api-reference/management-api/lead-notifications/create)共享），则返回 `403`：

```json 403 theme={null}
{ "detail": "You have exhausted your limit of 3 email reports.", "limit": 3 }
```

## 相关内容

* [列出表单通知](/zh/api-reference/management-api/form-notifications/list) —— 查看已配置的内容。
* [列出表单通知频率](/zh/api-reference/management-api/form-notifications/frequency) —— 有效的 `frequency` 值。
* [管理 API 概述](/zh/api-reference/management-api/overview) —— 此端点所属的身份验证方案和配额体系。


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /forms/notification/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /forms/notification/:
    post:
      summary: Create a form notification
      operationId: createManagedFormNotification
      responses:
        '201':
          description: Notification created.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````