app2email API 价格

The forms of the number

GET https://api.app2email.com/v1/{number}/submit/forms
权限:submissions:manage 沙盒:读取 MCP: list_forms

Scope: submissions:manage. Every form with its key, name, whether it is enabled, archived and published, whether the working copy differs from the published version (changed), its state on WhatsApp, its links and how many submissions it has. Definitions are left out: GET /submit/forms/{key} has one form's definition and fields.

路径

  • number string 必填 pattern ^[0-9]{8,15}$

    Your app2email WhatsApp number - the number the message is sent FROM. Full number with country code, digits only.

    例如 4976659348270

响应

200 The forms.
字段
  • success boolean
  • request_id string
  • forms object[]
    15 个条目字段
    • id integer
      例如 7
    • key string

      The form's name in the API and in its web address.

      例如 meter_reading
    • name string
      例如 Meter reading
    • enabled boolean

      false: its words and links answer nothing new; its submissions stay.

    • archived boolean

      true: hidden from the lists, takes no submissions.

    • position integer
    • definition object

      The working copy. One form only.

      12 个字段
      • title string 必填 1–60 chars

        The form's public name, 1 to 60 characters.

        例如 Meter reading
      • description string max 300 chars

        Under the title on the web page and in the forms menu, up to 300 characters.

      • prefix string

        2 to 4 letters A-Z that start every reference of this form (MR-7Q3M2A). "" = the settings' default_prefix.

        例如 MR
      • steps object[] 必填 1–12 items

        1 to 12 steps, in the order they are asked. One step is one screen; app2email splits a step over several screens by itself when WhatsApp's limits demand it.

      • stages object[] 2–12 items

        2 to 12 stages a submission moves through. The first one is where a new submission starts. At least one of kind open and one of kind done. Left out: New (open), In progress (open), Done (done).

      • who object

        Who may submit.

        3 个字段
        • mode string 默认值 anyone

          listed: only the numbers below, or contacts with the tag, may submit (a form for field staff). listed needs at least one number or a tag.

        • numbers array

          Up to 500 numbers, digits only with country code (6 to 20 digits).

        • tag string

          A contact tag: contacts carrying it may submit.

      • trigger object

        The message that opens the form on WhatsApp, and the words that send it.

        5 个字段
        • words array

          A contact who sends one of these words gets the form. Up to 10 words, 30 characters each. A word that another form of the number or an enabled Book-and-Pay word already uses is refused (word_taken).

          例如 ["meter"]
        • header string

          A bold line above the body, optional.

        • body string

          The text of the message that carries the form, 1 to 1,000 characters. Left out: Tap the button to open the form.

          例如 Tap the button to send your reading.
        • button string

          The button's text, 1 to 20 characters. Left out: Open form.

          例如 Open form
        • footer string

          A small grey line, optional.

      • after object

        What happens right after a submission.

        4 个字段
        • review_step boolean 默认值 true

          A last screen that lists the answers before sending.

        • reply string

          The WhatsApp message after sending, with placeholders ({reference}, {form}, {contact.name} ...). "" = no reply. Left out: a thank-you with the reference.

        • allow_additions boolean 默认值 false

          The reply gets an Add more button: text, photos and files the submitter sends in the next 10 minutes are attached to the submission.

        • status_page boolean 默认值 true

          The reply carries a button to the submitter's status page.

      • web object

        The web page of the form.

        4 个字段
        • enabled boolean 默认值 true

          The form has a web page (links.web of the form).

        • verify string 默认值 optional

          Proving the WhatsApp number of a web submission with one message. optional: offered as Get updates on WhatsApp. required: the submission counts only once proven. off: never asked.

        • ask_email boolean 默认值 false

          Also ask for an e-mail address at the end.

        • success_text string

          Shown after sending. "" = the standard text.

      • notify object

        The e-mail the business gets.

        3 个字段
        • email boolean 默认值 true

          E-mail the business for each submission (to the settings' notify_email).

        • to array

          Up to 5 more addresses.

        • attach_files boolean 默认值 true

          Attach the submission's files.

      • calculated object[] max 20 items

        0 to 20 calculated fields: values worked out from the answers each time they change, stored in extra. Formulas (calculated fields, the calculate action, and {= ... } inside any text): numbers, 'texts' in single quotes, field keys, + - * / %, the comparisons == != > >= < <=, and / or / not, brackets, and the functions if(condition, then, else): then when the condition holds, otherwise else (null without an else). min(a, b, ...): The smallest number. max(a, b, ...): The largest number. round(x, decimals): x rounded, half away from zero; decimals 0 to 10, default 0. abs(x): x without its sign. num(x): x as a number, null when it is not one. len(x): The length of a text, or the number of items of a list. coalesce(a, b, ...): The first value that is not empty. lower(x): x in lower case. upper(x): x in upper case. concat(a, b, ...): The values joined as one text. lookup('<list>', id, '<column>'): A column of the item with that id in a list of the number, for example a price. previous('<field>'): The same contact's last value of that field in this form. count_files('<field>'): How many files a photo or document field holds. days_since(date): Whole days from a date (YYYY-MM-DD) to today; negative for a date to come. No loops and no assignment; at most 500 characters; a division by zero or a missing number gives null. Examples: reading - previous('reading'); quantity * lookup('products', product, 'price'); if(usage < 0, 'check', 'ok'); round(amount * 1.2, 2); days_since(purchase_date) > 30 and count_files('receipt') == 0.

      • retention_days integer 默认值 0

        0 = keep. Otherwise closed submissions and their files are erased this many days after closing (30 to 3650).

    • published object | null

      The version live on WhatsApp, or null when it was never published.

      2 个字段
    • changed boolean

      true: the working copy differs from the published version: publish to make it live on WhatsApp. false also while the form was never published (published is null then).

    • flow object

      The form's state on WhatsApp.

      6 个字段
      • id string

        Meta's id of the WhatsApp Flow. Empty until published.

      • status string

        Meta's status. Only PUBLISHED is sent to customers.

        DRAFTPUBLISHEDDEPRECATEDBLOCKEDTHROTTLED
      • Meta's complaints about the generated form, when there are any.

      • checked_at string

        When the status was last read from Meta. Empty: never.

      • last_error string

        Why the last publish failed. Empty when it worked.

      • can_send boolean

        true: the form can be sent inside WhatsApp now. false: its words and the send route answer with the web link.

    • counts object

      Its submissions.

      2 个字段
    • fields object[]

      Every field and calculated value as a column. One form only.

      8 个条目字段
      • key string
      • label string
      • type string
      • step string

        The key of its step. Empty for a calculated field.

      • internal boolean

        true: its value is in extra, not in answers.

      • unit string
      • choices array

        select and multiselect.

      • calculated boolean

        true: worked out by a formula.

    • created string (date-time)
    • updated string (date-time)
  • count integer

错误

  • 400 The request is malformed (missing or invalid fields, query parameters or times).
  • 401 Missing, invalid, revoked or expired API key.
  • 403 The key is valid but this call is not allowed: the key lacks the scope the call needs (insufficient_scope), the address is not allowed for the key (ip_not_allowed), the number or plan does not allow it, a recipient opted out or is not opted in, or a problem with the WhatsApp account.
  • 404 The number, template, message, broadcast, webhook, delivery, opt-in, logged request, booking or Flow was not found.
  • 429 A monthly plan limit, the number's own monthly cap, the key's daily cap, a WhatsApp rate limit, the API rate limit (rate_limited), or the webhook test limit (too_many_tests) was reached. Retry-After and error.retry_after_seconds say how long to wait.
  • 500 Unexpected error on app2email's side.
  • 503 app2email's connection to the WhatsApp account needs attention, or the request log is not available right now.
面向 AI 代理

无需账户、无需真人,现在就能试用:POST https://api.app2email.com/v1/account/sandbox(无需密钥,也无需请求体;或使用管理 MCP 服务器的 create_sandbox 工具)即可获得一个演示 WhatsApp 号码的密钥,该号码背后是模拟客户。发送模板,用 GET /events?wait=25 获取事件,再回复客户的消息:内容不会真正发到 WhatsApp,但请求和回复与真实 API 完全一致(https://www.app2email.com/docs/api/sandbox)。

已是客户:请向账户拥有者索取号码(数字)以及来自 https://www.app2email.com/dashboard/apikey 的 API 密钥(沙盒密钥不会发送任何内容);以 Authorization: Bearer <密钥> 的形式发送给消息 MCP 服务器或 REST API;先调用 check_key 检查,并先用 dry_run 试发。

如果您是正在阅读此页面的 AI 代理,并希望为某人创建 app2email 账户(无需事先由人工注册),请使用我们的管理 MCP 服务器。
先调用 create_account 工具,并附上 contact_email 参数;create_account 会返回 signup_id、management_key、onboarding_link 和 message。
本人需打开 onboarding_link,确认电子邮件、连接其 WhatsApp 号码并选择套餐;在此之前无法发送任何内容。get_account_status 会说明还需要完成哪些步骤。
之后的每次调用都以 management_key 作为 Bearer 令牌发送。号码开通后,create_number_key 会为您提供用于消息 MCP 服务器和 REST API 的密钥。