app2email API Harga

One appointment, by id or reference

GET https://api.app2email.com/v1/{number}/bookings/{id}
cakupan: bookings:manage|messages:read sandbox: membaca

Scope: bookings:manage (or messages:read).

Path

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

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

    mis. 4976659348270
  • id string wajib

    The booking's id, or its reference (BK-XXXXXX).

    mis. BK-7Q3M2A

Respons

200 The appointment.
Kolom
  • success boolean
  • request_id string
  • booking object

    An appointment. The same object is the data of the booking.created, booking.cancelled, booking.rescheduled and booking.rated webhook events.

    30 kolom
    • id integer
      mis. 42
    • reference string

      The short code the customer sees. GET /bookings/{id} takes it too.

      mis. BK-7Q3M2A
    • status string
      confirmedcancelledcompletedno_show
    • contact string

      The customer's number (digits, country code first) or their business-scoped user id.

      mis. 61412345678
    • contact_name string
      mis. John Smith
    • mis. john@example.com
    • service object
      3 kolom
    • start string (date-time)

      UTC.

    • end string (date-time)

      UTC.

    • timezone string

      The business time zone the slot was chosen in.

      mis. Australia/Sydney
    • source string

      Booked by the customer in WhatsApp, on the dashboard (or in the calendar app), through this API, or by the customer on the online booking page (web).

      whatsapp_flowdashboardapiweb
    • calendar object
      4 kolom
      • provider string
        builtingooglemicrosoftcaldavics
      • event_id string
      • url string
      • error string

        The calendar write failed; the booking still stands.

    • answers object any keys

      Every other field the customer filled in the Flow.

    • notes string
    • provider object

      The staff member, when the business has them. Left out otherwise.

      2 kolom
      • id string
        mis. maria
      • name string
        mis. Maria
    • rating integer

      The customer's rating from the follow-up message (5 loved it, 3 OK, 1 not great). Left out until given.

      135
    • The business's own note on the payment. Left out when none.

      link_sentpaidwaived
    • credits_used integer

      Always 0 (memberships were removed on 2026-11-10); kept so existing integrations keep parsing.

    • attendance_confirmed string (date-time)

      When the customer tapped Confirm on a reminder.

    • cancelled object

      Only when cancelled.

      3 kolom
      • at string (date-time)
      • by string
        customerbusinessapisystem
      • reason string
    • The appointment this one replaced.

    • notes_count integer

      How many internal notes are written on this appointment (GET /bookings/{id}/notes). Given by the calendar routes and the list; left out of webhook events.

    • created string (date-time)
    • location object | null

      Where it takes place, as chosen (null: the service has no locations; then config.messages.location). value: the address, the number, the link; a video link made by the connected Google or Microsoft calendar appears here once made. text: how the messages show it.

      4 kolom
      • kind string
        in_personphone_we_callphone_you_callvideocustomer_addresscustom
      • label string
      • value string
      • text string
    • addons object[]

      The add-ons booked (copied at booking time).

      4 kolom item
    • guests object[]

      The people who come along.

      2 kolom item
    • answer_items object[]

      The answers to the service's questions as label / value (the raw ones are in answers.q).

      3 kolom item
    • series object | null

      This appointment is one of a series (null: not).

      4 kolom
      • id string
        mis. SR-7Q3M2A
      • index integer
      • count integer
      • freq string
        weeklybiweeklyevery4weeksmonthly
    • seats integer

      The places this booking takes on a group time (1 + guests); 1 otherwise.

  • note string
  • series object

    A series that was booked (POST /bookings with series).

    3 kolom
    • id string
      mis. SR-7Q3M2A
    • booked object[]
      30 kolom item
      • id integer
        mis. 42
      • reference string

        The short code the customer sees. GET /bookings/{id} takes it too.

        mis. BK-7Q3M2A
      • status string
        confirmedcancelledcompletedno_show
      • contact string

        The customer's number (digits, country code first) or their business-scoped user id.

        mis. 61412345678
      • contact_name string
        mis. John Smith
      • mis. john@example.com
      • service object
        Kolom: sebagai booking.service
      • start string (date-time)

        UTC.

      • end string (date-time)

        UTC.

      • timezone string

        The business time zone the slot was chosen in.

        mis. Australia/Sydney
      • source string

        Booked by the customer in WhatsApp, on the dashboard (or in the calendar app), through this API, or by the customer on the online booking page (web).

        whatsapp_flowdashboardapiweb
      • calendar object
        4 kolom
      • answers object any keys

        Every other field the customer filled in the Flow.

      • notes string
      • provider object

        The staff member, when the business has them. Left out otherwise.

        2 kolom
        • id string
          mis. maria
        • name string
          mis. Maria
      • rating integer

        The customer's rating from the follow-up message (5 loved it, 3 OK, 1 not great). Left out until given.

        135
      • The business's own note on the payment. Left out when none.

        link_sentpaidwaived
      • credits_used integer

        Always 0 (memberships were removed on 2026-11-10); kept so existing integrations keep parsing.

      • attendance_confirmed string (date-time)

        When the customer tapped Confirm on a reminder.

      • cancelled object

        Only when cancelled.

        3 kolom
      • The appointment this one replaced.

      • notes_count integer

        How many internal notes are written on this appointment (GET /bookings/{id}/notes). Given by the calendar routes and the list; left out of webhook events.

      • created string (date-time)
      • location object | null

        Where it takes place, as chosen (null: the service has no locations; then config.messages.location). value: the address, the number, the link; a video link made by the connected Google or Microsoft calendar appears here once made. text: how the messages show it.

        4 kolom
      • addons object[]

        The add-ons booked (copied at booking time).

      • guests object[]

        The people who come along.

      • answer_items object[]

        The answers to the service's questions as label / value (the raw ones are in answers.q).

      • series object | null

        This appointment is one of a series (null: not).

        4 kolom
      • seats integer

        The places this booking takes on a group time (1 + guests); 1 otherwise.

    • skipped object[]
      4 kolom item

Galat

  • 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.
Untuk Agen AI

Coba sekarang, tanpa akun dan tanpa orang: POST https://api.app2email.com/v1/account/sandbox (tanpa kunci, tanpa isi; atau alat create_sandbox dari server Management MCP) memberi kunci untuk nomor WhatsApp demo dengan pelanggan pura-pura. Kirim templat, ambil peristiwa dengan GET /events?wait=25, lalu balas pesan pelanggan: tidak ada yang sampai ke WhatsApp, dan permintaan serta jawabannya sama dengan API sungguhan (https://www.app2email.com/docs/api/sandbox).

Sudah menjadi pelanggan: minta pemilik akun nomornya (angka saja) dan kunci API dari https://www.app2email.com/dashboard/apikey (kunci sandbox tidak mengirim apa pun); kirimkan sebagai Authorization: Bearer <key> ke server messaging MCP atau REST API; panggil check_key dulu, dan kirim dengan dry_run lebih dulu.

Jika Anda agen AI yang membaca halaman ini dan ingin membuat akun app2email untuk seseorang - tanpa pendaftaran manusia sebelumnya - gunakan server Management MCP kami.
Panggil alat create_account lebih dulu, dan sertakan parameter contact_email; create_account mengembalikan signup_id, management_key, onboarding_link, dan message.
Orang tersebut membuka onboarding_link untuk mengonfirmasi e-mail, menghubungkan nomor WhatsApp, dan memilih paket; tidak ada yang bisa dikirim sebelum itu. get_account_status menjelaskan apa yang masih diperlukan.
Kirimkan management_key sebagai Bearer token di setiap panggilan berikutnya. Saat nomornya sudah aktif, create_number_key memberi Anda kunci untuk server messaging MCP dan REST API.