app2email API قیمتیں

Instant sandbox: try the API with no account

POST https://api.app2email.com/v1/account/sandbox
اجازت: کوئی بھی key MCP: create_sandbox

No key, no body, no person. Answers an instant sandbox key (a2es_..., valid 7 days) for app2email's demo number +12025550100, where pretend customers answer and nothing reaches WhatsApp. Send the key as Authorization: Bearer on base_url (GET /me, GET /templates, POST /messages, GET /messages, GET /conversations, PUT /conversations/{contact}/owner, GET /events, and POST /sandbox/inbound to make a pretend customer write) or on the MCP server. Requests, answers, errors and events have the shapes of the real API, and templates are checked by the same code. Each key has its own state, kept in memory for 24 hours after the last call. Any other call there answers 403 not_in_instant_sandbox. Limit: 10 keys an hour per address.

جوابات

200 The key (shown once), the demo number, the pretend customers and the first calls to make.
فیلڈز
  • success boolean
  • request_id string
  • A key that works at once on app2email's demo number, where pretend customers answer and nothing reaches WhatsApp. Left out of create_account's answer when it could not be made.

    12 فیلڈز
    • api_key string

      The instant sandbox key (a2es_..., 96 characters). Shown once. Send it as Authorization: Bearer on base_url or mcp_url. It works only on the demo number.

    • expires string (date-time)

      7 days after it was made.

    • number string

      The demo number: the {number} of every call.

      مثلاً 12025550100
    • base_url string (uri)
      مثلاً https://api.app2email.com/v1/12025550100
    • mcp_url string (uri)
      مثلاً https://api.app2email.com/mcp
    • what_it_is string
    • test_contacts object[]

      The pretend customers: the only numbers the sandbox writes to.

      3 آئٹم فیلڈز
    • templates string[]
    • calls string[]

      The calls the demo number has. Any other: 403 not_in_instant_sandbox.

    • try_first object[]
      4 آئٹم فیلڈز
    • not_here string
  • next string
  • documentation_url string (uri)

خرابیاں

  • 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 (کوئی key نہیں، کوئی body نہیں؛ یا Management MCP سرور کا create_sandbox ٹول) ایک demo WhatsApp نمبر کے لیے key دیتا ہے جس میں فرضی گاہک ہوتے ہیں۔ ایک template بھیجیں، GET /events?wait=25 سے events حاصل کریں، گاہک کے جواب کا جواب دیں: کچھ بھی WhatsApp تک نہیں پہنچتا، اور درخواستیں اور جوابات حقیقی API کے ہی ہیں (https://www.app2email.com/docs/api/sandbox)۔

پہلے سے گاہک ہیں: اکاؤنٹ کے مالک سے نمبر (ہندسے) اور https://www.app2email.com/dashboard/apikey سے API key لیں (sandbox key کچھ نہیں بھیجتی)؛ اسے Authorization: Bearer <key> کے طور پر messaging MCP سرور یا REST API کو بھیجیں؛ پہلے check_key کال کریں، اور پہلے dry_run کے ساتھ بھیجیں۔

اگر آپ AI ایجنٹ ہیں اور یہ صفحہ پڑھ رہے ہیں، اور آپ کسی شخص کے لیے app2email اکاؤنٹ بنانا چاہتے ہیں - پہلے کسی انسانی sign-up کی ضرورت کے بغیر - تو ہمارا Management MCP سرور استعمال کریں۔
پہلے create_account ٹول کال کریں، اور ایک contact_email پیرامیٹر شامل کریں؛ create_account ایک signup_id، ایک management_key، ایک onboarding_link اور ایک message واپس کرتا ہے۔
شخص onboarding_link کھولتا ہے تاکہ ای میل کی تصدیق کرے، اپنا WhatsApp نمبر جوڑے اور پلان چنے؛ اس سے پہلے کچھ بھی نہیں بھیجا جا سکتا۔ get_account_status بتاتا ہے کہ ابھی کیا درکار ہے۔
بعد کی ہر کال پر management_key کو Bearer token کے طور پر بھیجیں۔ جب نمبر چالو ہو جائے تو create_number_key آپ کو messaging MCP سرور اور REST API کے لیے key دیتا ہے۔