Whautomate Help
Visit our websitePricingRequest DemoRoadmap
  • 👋Welcome to Whautomate
  • Overview
    • 💡What we do
    • ✨Our Features
  • Fundamentals
    • 🛠️Getting Started
      • Customer Service
      • Marketing
      • Sales
      • E-Commerce
      • Appointments
      • Classes & Subscriptions
    • 🎯Onboarding Checklist
      • Appointments
      • Classes
      • E-Commerce
      • Customer Service
  • Product Guides
    • Communication
      • Connect a Communication Channel
      • Omni Channel Team Inbox
      • Contacts
      • Segmentation & Broadcasts
      • Email/SMS Sender Configuration
      • Marketing opt-out Management
      • ⚡Canned Responses
      • ⭐CSAT Score
    • Automation
      • Triggers
        • Incoming WhatsApp Messages
        • Outgoing WhatsApp Messages
        • Appointment Updates
        • Happy Birthday Automation
        • Client Anniversary Automation
        • When a Client is created
        • When a Client is added to a Tag
        • When a Client is removed from a Tag
        • When a Contact is created
        • When a Contact is added to a Tag
        • When a Contact is removed from a Tag
        • When a Contact Status Changes
        • When a Client Completes a Form
        • When a Client is assigned a Form
        • When someone Completes an anonymous Form
        • Subscription Updates
        • Order Updates
        • Invoice Updates
        • Credits Usage Updates
        • Class Participant Updates
        • Incoming Messenger Messages
        • Outgoing Messenger Messages
        • Incoming Instagram Messages
        • Outgoing Instagram Messages
        • Incoming Telegram Messages
        • Outgoing Telegram Messages
        • Incoming Website Messages
        • Outgoing Website Messages
        • Shopify - Abandoned Cart
        • Shopify - Order Created
        • Shopify - Order Fulfilled
        • Shopify - Order Cancelled
        • WooCommerce - Abandoned Cart
        • WooCommerce - Order Status Changes
      • Setup WhatsApp Chatbot
      • WhatsApp AI Chatbot - Customer Service
      • Telegram AI Chatbot - Customer Service
      • Chatbot Demos
      • WhatsApp Drip Campaign
      • Birthday Wishes Campaign
      • Automate Reviews & Surveys
    • Invoice & Payment links
      • Setup Payment Gateway
      • Update Business Settings
      • Invoice & Payments
      • Invoice Statements
      • Send Invoice PDF - Personalize WhatsApp, Email and SMS template
      • Invoice Request Payment - Personalize WhatsApp, Email and SMS template
    • E-Commerce
      • Setup WhatsApp Catalog
        • Add Items - Manual
        • Add Items - Data Feed
        • Add Items - Connect Partner Platform
      • Manage Inventory & Link WhatsApp Catalog
      • WhatsApp E-Commerce Chatbot
      • Automate Order Updates
      • Automate Order Reviews & Surveys
    • Appointments
      • Setup Team Member Profile
      • Setup Services
      • Book Appointments - Admin
      • Setup Whatsapp Flow Appointment Chatbot
      • Setup Appointment Chatbot
      • Setup Appointment Notifications
      • Setup Appointment Notifications for Staffs
      • Setup Bulk Appointment Notifications
      • Setup Booking Portal
      • Sync Appointments with External Calendars
      • Bulk Import Services
      • Setup Virtual/Online Session Services
      • Setup Virtual/Online Session Notifications
    • Plans & Subscriptions
      • Setup Plans
      • Setup Subscriptions
    • Class Bookings
      • Bulk Import Classes
      • Setup Classes
      • Setup Class Batches
      • Setup Class Notifications
      • Setup Bulk Class Notifications for Participants
      • Setup Class Booking Chatbot
      • Setup Whatsapp Flow Class Booking Chatbot
      • Setup Class Booking Portal
    • Forms
      • Request Form - Personalize WhatsApp, Email and SMS template
      • Personalize Your Form Response PDFs: Template Editor
      • Form Automations
      • Payment Forms
    • Coupons
    • Loyalty Program
      • Automate Loyalty Program Notifications via WhatsApp
    • Integrations
      • WhatsApp Cloud API
        • WhatsApp Payment Method
        • Meta Business Verification
        • WhatsApp Profile
        • WhatsApp Compliance Info
        • WhatsApp Commerce Settings
        • WhatsApp Message Templates
        • Linking WhatsApp Number (WABA) to Your Facebook Page
        • How to Add WhatsApp Button to Your Instagram Account
        • Setup Click-to-WhatsApp Ads (CTWA)
      • Instagram
      • Facebook Messenger
      • Telegram
      • Livechat
      • OpenAI
      • Stripe
      • Razorpay
      • Shopify
        • Shopify Automations
      • WooCommerce
        • Woocommerce Automations
      • Rest API
      • MyFatoorah
      • Zoom
      • Webhooks
        • Clients
        • Contacts
        • Messages
        • Appointments
        • Classes
        • Invoice Updates
      • Zapier
    • Client CRM
      • Bulk Import Clients
      • Client Details
      • Client Notes
      • Client Documents
      • Client Letters
      • Client Forms
    • WhatsApp Chat Widget
    • Whautomate Rest API
      • Client Tags
      • Clients
      • Contact Tags
      • Contacts
      • Locations
      • Staffs
      • Segments
      • Broadcasts
      • Messages
      • Service Categories
      • Services
      • Appointments
      • Classes
      • Webhooks
      • Whautomate REST API Error Messages
    • Whautomate FAQs
      • My WhatsApp Template Message Failing to Send to Some Users?
      • How to Check My WhatsApp Quality Rating and Messaging Limits?
      • How to Install the Whautomate Progressive Web Application?
      • Why Does My Whautomate Account Frequently Log Out?
      • How to Get the WhatsApp Green Tick in 3 Easy Steps
      • Essential Tips to Avoid WhatsApp Business Account/API Restrictions & Bans
      • How to Check Undeliverable or Failed WhatsApp Contacts in Whautomate
      • How to Delete Your WhatsApp Business API Number?
  • Account Management
    • Manage Subscription
      • Choose Your Plan
      • Upgrade Subscription
      • Whautomate Add-ons
      • Update Payment Method
      • Subscription Cancelations
    • Account Settings
    • Team Members Management
      • Invite, Activate or De-activate Members
      • Roles and Permissions
    • Forgot Password
    • Reset Password
    • Two Factor Authentication
  • WhatsApp Pricing
    • WhatsApp pricing Calculator - USD
    • WhatsApp pricing Calculator - INR
    • WhatsApp Pricing Calculator - EUR
Powered by GitBook
On this page
  1. Product Guides
  2. Whautomate Rest API

Whautomate REST API Error Messages

This document outlines the errors returned by REST APIs, including standardized error responses, appropriate HTTP status codes, and detailed error messages.

PreviousWebhooksNextWhautomate FAQs

Last updated 7 months ago

Handling Errors

Status code
Error
Reason

400 Bad Request

{"message": "Invalid request body"}

  • Malformed JSON: The request body might not be formatted correctly (e.g., missing commas, brackets, or quotations) or does not adhere to valid JSON structure.

  • Missing required fields: One or more required fields may be missing from the request body.

  • Incorrect data types: Fields in the request body may have the wrong data type (e.g., sending a string when a number is expected).

  • Invalid field values: Some fields may contain values outside the acceptable range or invalid options.

400 Bad Request

{"error": 'Invalid parameters'}

A 400 Bad Request error indicates that your API request contains invalid parameters. This can occur for various reasons, such as:

• Missing required parameters.

• Incorrect data types for parameters.

• Invalid values for specific fields.

403 Forbidden

{"message": "Forbidden"}

403 Forbidden Error occurs when your API request is not authorized. This can happen if the required x-api-key header is missing from your request. The x-api-key is crucial for authenticating your request and granting access.

Verify that the x-api-key header is included in your API request. (or) Verify the x-api-key provided is correct. (or) Verify that you have necessary permissions to perform the requested functionality.

404 Not Found

{"error": "Invalid locationId"}

Invalid or missing locationId: The locationId provided in the request is either missing, incorrect, or does not exist in the system. The API expects a valid locationId to complete the requested operation.

Here are two easy ways to get your Location ID:

  1. Using API: You can get a list of locations by calling the API. Check the for more details.

  2. From the Whautomate App:

• Go to Settings.

• Click Edit location details under the General section.

• Look at the end of the URL for your Location ID, like this: 1abcd2Ef34.

404 Not Found

{"error": "<Record> not found"} (Eg. Client, Contact, etc)

Invalid or missing record identifier: The system could not locate the specified client because the ID you provided is incorrect, missing, or does not exist in the database.

429 Too Many Requests

{"message": "Too Many Requests"}

A 429 Too Many Requests error occurs when you exceed the allowed number of API requests within a given time frame. The rate limits depend on your account type:

Trial Account: Maximum of 60 requests per minute Subscribed Account: Maximum of 300 requests per minute How to Resolve: Reduce the frequency of your API requests to stay within the rate limit. Consider upgrading your account if you need a higher request rate.

500 Internal Server Error

{"error": "Could not create <record> "} {"error": "Could not retrieve <record> "} {"error": "Could not update <record> "} {"error": "Could not delete <record> "}

A 500 Internal Server Error in an API call means the server encountered an unexpected issue while processing your request. This could be related to server load, request limits, or other internal factors.

Please reach out to our support team for assistance in resolving the issue.

Contact Support: support@whautomate.com


Locations API documentation