😍WhatsApp APIs

The WhatsApp APIs section includes endpoints for managing WhatsApp contacts, contact lists, segments, campaigns, and templates. These endpoints allow users to perform operations such as retrieving contacts, adding new contacts, updating existing contacts, and managing contact lists. Additionally, users can create and manage campaigns and templates for sending messages via WhatsApp. The JWT token and API key must be included in the headers of these requests to ensure proper authorization.

Get All Contacts

  • Endpoint: GET /api/whatsapp-contact

  • Headers:

    Authorization: Bearer your_jwt_token_here
    apikey: your_api_key_here
    Content-Type: application/json
  • Response:

    jsonCopy code{
      "success": true,
      "message": "contact_retrieved_successfully",
      "data": {
          "contacts": [{
              "id": 1,
              "name": "John",
              "username": null,
              "thumbnail": "https:\/\/activemsg.com\/public\/images\/default\/default-image-80x80.png",
              "phone": "+911234567890",
              "is_left_group": null,
              "type": "whatsapp",
              "status": 1,
              "is_blacklist": "0",
              "is_verified": 0,
              "last_conversation_at": null,
              "has_conversation": 0,
              "has_unread_conversation": 0,
              "group_chat_id": null,
              "group_subscriber_id": null,
              "group_id": null,
              "created_at": "20-07-2024 01:54:06",
              "updated_at": "20-07-2024 01:54:06",
              "contact_list_id": null,
              "country_id": "India"
          }],
          "paginate": {
              "total": 1,
              "current_page": 1,
              "per_page": 10,
              "last_page": 1,
              "prev_page_url": null,
              "next_page_url": null,
              "path": "https:\/\/activemsg.com\/api\/whatsapp-contact"
          }
      }
    }

Store Contact

  • Endpoint: POST /api/whatsapp-contact-store

  • Headers:

  • Request Body:

  • Response:

Update Contact

  • Endpoint: POST /api/whatsapp-contact-update/{id}

  • Headers:

  • Request Body:

  • Response:

Get All Contact Lists

  • Endpoint: GET /api/whatsapp-contact-list

  • Headers:

  • Response:

Store Contact List

  • Endpoint: POST /api/whatsapp-contact-list-store

  • Headers:

  • Request Body:

  • Response:

Update Contact List

  • Endpoint: POST /api/whatsapp-contact-list-update/{id}

  • Headers:

  • Request Body:

  • Status: 0 (inactive) or 1 (active)

  • Response:

Get All Segments

  • Endpoint: GET /api/whatsapp-segment

  • Headers:

  • Response:

Get All Campaigns

  • Endpoint: GET /api/whatsapp-campaign

  • Headers:

  • Response:

Store Campaign

  • Endpoint: POST /api/whatsapp-campaign-store

  • Headers:

  • Request Body:

  • Response:

Update Campaign

  • Endpoint: POST /api/whatsapp-campaign-update/{id}

  • Headers:

  • Request Body:

  • Response:

Get All Templates

  • Endpoint: GET /api/whatsapp-template

  • Headers:

  • Response:

Last updated