app2email API Amanani

Add an internal note to an appointment

POST https://api.app2email.com/v1/{number}/bookings/{id}/notes
isikali: bookings:manage i-sandbox: kwenqatshiwe Idempotency-Key MCP: add_booking_note

Scope: bookings:manage. Not with a sandbox key. The note is about the appointment's customer and written on this appointment. author is "API key <name>" and author_kind "api". booking.note.created is sent. Send an Idempotency-Key header to retry safely: the same key and body within 24 hours gets the first answer again (an error does not use the key up).

Indlela

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

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

    isb. 4976659348270
  • id string kuyadingeka

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

    isb. BK-7Q3M2A

Izihloko

  • Idempotency-Key string max 255 chars

    A unique value for this message or list (eg a UUID). The same request with the same key within 24 hours gets the first answer again, and nothing is sent twice. Ignored by dry runs.

    isb. order-1234-shipped

Umzimba application/json kuyadingeka

  • body string kuyadingeka max 4000 chars
    isb. Prefers the window seat.
  • pinned boolean okuzenzekelayo false
  • contact string

    POST /bookings/notes only: the customer (number with country code, or business-scoped user id). Left out when booking_id is given.

    isb. 61412345678
  • booking_id string

    POST /bookings/notes only: the appointment (id or reference) the note is written on; the customer is taken from it.

    isb. BK-7Q3M2A

Izimpendulo

201 Added.
Amasimu
  • success boolean
  • request_id string
  • note object

    An internal note about a customer, optionally written on one appointment. Never shown to the customer. Also the data of the booking.note.created event (plus booking and timestamp).

    amasimu angu-11
    • id integer
      isb. 7
    • contact string

      The customer.

      isb. 61412345678
    • appointment_id integer | null

      The appointment it was written on. null: a note on the customer alone.

    • booking_reference string | null
      isb. BK-7Q3M2A
    • body string

      Up to 4000 characters.

    • author string

      A person's name or e-mail, or API key <name>.

      isb. API key Planner
    • author_kind string
      userapiagentsystem
    • pinned boolean
    • created string (date-time)
    • updated string (date-time)
    • Only in GET /bookings/{id}/notes: written on that appointment (false: another note of the same customer).

Amaphutha

api_key_expiredapi_key_number_mismatchapi_key_old_formatapi_key_revokedblock_list_busyblock_list_fullblock_users_errorblock_users_failedbooking_not_enabledbooking_not_foundbsuid_not_supportedcall_permission_requireddisplay_name_not_approvedidempotency_key_reusedidempotency_request_in_progressidempotency_request_interruptedinsufficient_scopeinternal_errorinvalid_api_keyinvalid_authorization_headerinvalid_cursorinvalid_idempotency_keyinvalid_jsoninvalid_noteinvalid_number_in_urlinvalid_timeip_not_allowedmarketing_disabled_on_cloud_apimarketing_per_user_limitmedia_download_errormedia_upload_errormessaging_limit_restrictedmissing_api_keynot_available_on_personal_numbernote_not_foundnumber_already_verifiednumber_not_foundoutside_24h_windowparameter_value_invalidpersonal_number_new_chat_limitpersonal_number_not_linkedplan_not_allowedrate_limitedrecipient_identity_changedrecipient_in_experimentrecipient_is_senderrecipient_not_allowedrecipient_stopped_marketingrecipient_unreachableregister_limit_reachedrequired_parameter_missingsandbox_keyservice_not_livetemplate_disabledtemplate_format_policytemplate_not_availabletemplate_not_foundtemplate_not_marketingtemplate_parameter_count_mismatchtemplate_parameter_format_mismatchtemplate_parameter_invalidtemplate_pausedtemplate_text_too_longtoo_many_messages_to_recipientunsupported_message_typeusername_account_not_linkedusername_change_limitusername_not_availableusername_not_eligibleusername_takenwhatsapp_account_lockedwhatsapp_account_restrictedwhatsapp_connection_problemwhatsapp_errorwhatsapp_maintenancewhatsapp_number_not_registeredwhatsapp_parameter_errorwhatsapp_payment_issuewhatsapp_rate_limitwhatsapp_unavailable
  • 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.
  • 415 The body is not JSON.
  • 422 The request is understood but cannot be sent (template parameters, media, text, recipient, or a WhatsApp rule such as the 24 hour window).
  • 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.

Ama-webhook okubangelayo

Ku-AI agents

Zama manje, ngaphandle kwe-akhawunti nomuntu: POST https://api.app2email.com/v1/account/sandbox (akudingeki ukhiye, akudingeki umzimba; noma ithuluzi create_sandbox leseva ye-Management MCP) liphendula ngekhiye lenombolo yedemo ye-WhatsApp enamakhasimende abekiwe. Thumela isifanekiso, uthole izehlakalo nge-GET /events?wait=25, uphendule impendulo yekhasimende: akukho okufika ku-WhatsApp, nezicelo nezimpendulo zingezalo-API langempela (https://www.app2email.com/docs/api/sandbox).

Usuvele ungumkhwenyana: cela umnikazi we-akhawunti inombolo (izinombolo) nekhiye le-API ku-https://www.app2email.com/dashboard/apikey (ikhiye le-sandbox alithumeli lutho); lithumele njenge-Authorization: Bearer <key> seva ye-MCP yokuthumelana noma ku-REST API; bize check_key kuqala, uthumele ngo-dry_run kuqala.

Uma ungu-AI agent ofunda leli khasi futhi ufuna ukudala i-akhawunti ye-app2email yomuntu - akudingeki ukubhalisa okwandulele ngumuntu - sebenzisa iseva yethu ye-Management MCP.
Biza ithuluzi create_account kuqala, bese ufaka iparamitha contact_email; i-create_account ibuyisela i-signup_id, i-management_key, i-onboarding_link kanye ne-message.
Umuntu uvula i-onboarding_link ukuze aqinisekise i-imeyili, axhume inombolo yakhe ye-WhatsApp, akhethe ipulani; akukho okungathunyelwa ngaphambi kwalokho. I-get_account_status itshela ukuthi yini esadingekayo.
Dlulisa i-management_key njengethokheni le-Bearer kuzo zonke izicelo zakho ezilandelayo. Lapho inombolo isiphila, i-create_number_key ikunikeza ikhiye leseva ye-MCP yokuthumelana ne-REST API.