WhatsApp API

Channel

apiChannelInstanceIdClientActionCreateChannelPost

Create channel

Create a new WhatsApp channel


/api/channel/{instanceId}/client/action/create-channel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/channel/{instanceId}/client/action/create-channel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelApi;

import java.io.File;
import java.util.*;

public class ChannelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChannelApi apiInstance = new ChannelApi();
        Action_createchannel_body body = ; // Action_createchannel_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionCreateChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionCreateChannelPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelApi;

public class ChannelApiExample {

    public static void main(String[] args) {
        ChannelApi apiInstance = new ChannelApi();
        Action_createchannel_body body = ; // Action_createchannel_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionCreateChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionCreateChannelPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_createchannel_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChannelApi *apiInstance = [[ChannelApi alloc] init];

// Create channel
[apiInstance apiChannelInstanceIdClientActionCreateChannelPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChannelApi()
var body = ; // {{Action_createchannel_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChannelInstanceIdClientActionCreateChannelPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChannelInstanceIdClientActionCreateChannelPostExample
    {
        public void main()
        {


            var apiInstance = new ChannelApi();
            var body = new Action_createchannel_body(); // Action_createchannel_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Create channel
                inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionCreateChannelPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelApi.apiChannelInstanceIdClientActionCreateChannelPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChannelApi();
$body = ; // Action_createchannel_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChannelInstanceIdClientActionCreateChannelPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelApi->apiChannelInstanceIdClientActionCreateChannelPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelApi;


my $api_instance = WWW::SwaggerClient::ChannelApi->new();
my $body = WWW::SwaggerClient::Object::Action_createchannel_body->new(); # Action_createchannel_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChannelInstanceIdClientActionCreateChannelPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelApi->apiChannelInstanceIdClientActionCreateChannelPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChannelApi()
body =  # Action_createchannel_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Create channel
    api_response = api_instance.api_channel_instance_id_client_action_create_channel_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelApi->apiChannelInstanceIdClientActionCreateChannelPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Channel created successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiChannelInstanceIdClientActionGetChannelByIdPost

Get channel by ID

Get channel information by its ID


/api/channel/{instanceId}/client/action/get-channel-by-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/channel/{instanceId}/client/action/get-channel-by-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelApi;

import java.io.File;
import java.util.*;

public class ChannelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChannelApi apiInstance = new ChannelApi();
        Action_getchannelbyid_body body = ; // Action_getchannelbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_21 result = apiInstance.apiChannelInstanceIdClientActionGetChannelByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionGetChannelByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelApi;

public class ChannelApiExample {

    public static void main(String[] args) {
        ChannelApi apiInstance = new ChannelApi();
        Action_getchannelbyid_body body = ; // Action_getchannelbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_21 result = apiInstance.apiChannelInstanceIdClientActionGetChannelByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionGetChannelByIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getchannelbyid_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChannelApi *apiInstance = [[ChannelApi alloc] init];

// Get channel by ID
[apiInstance apiChannelInstanceIdClientActionGetChannelByIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_21 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChannelApi()
var body = ; // {{Action_getchannelbyid_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChannelInstanceIdClientActionGetChannelByIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChannelInstanceIdClientActionGetChannelByIdPostExample
    {
        public void main()
        {


            var apiInstance = new ChannelApi();
            var body = new Action_getchannelbyid_body(); // Action_getchannelbyid_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get channel by ID
                inline_response_200_21 result = apiInstance.apiChannelInstanceIdClientActionGetChannelByIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelApi.apiChannelInstanceIdClientActionGetChannelByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChannelApi();
$body = ; // Action_getchannelbyid_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChannelInstanceIdClientActionGetChannelByIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelApi->apiChannelInstanceIdClientActionGetChannelByIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelApi;


my $api_instance = WWW::SwaggerClient::ChannelApi->new();
my $body = WWW::SwaggerClient::Object::Action_getchannelbyid_body->new(); # Action_getchannelbyid_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChannelInstanceIdClientActionGetChannelByIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelApi->apiChannelInstanceIdClientActionGetChannelByIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChannelApi()
body =  # Action_getchannelbyid_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get channel by ID
    api_response = api_instance.api_channel_instance_id_client_action_get_channel_by_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelApi->apiChannelInstanceIdClientActionGetChannelByIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Channel retrieved successfully

Status: 400 - Invalid request

Status: 404 - Channel or instance not found


apiChannelInstanceIdClientActionGetChannelsPost

Get channels

Get list of channels


/api/channel/{instanceId}/client/action/get-channels

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/channel/{instanceId}/client/action/get-channels"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelApi;

import java.io.File;
import java.util.*;

public class ChannelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChannelApi apiInstance = new ChannelApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_20 result = apiInstance.apiChannelInstanceIdClientActionGetChannelsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionGetChannelsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelApi;

public class ChannelApiExample {

    public static void main(String[] args) {
        ChannelApi apiInstance = new ChannelApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_20 result = apiInstance.apiChannelInstanceIdClientActionGetChannelsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionGetChannelsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChannelApi *apiInstance = [[ChannelApi alloc] init];

// Get channels
[apiInstance apiChannelInstanceIdClientActionGetChannelsPostWith:instanceId
              completionHandler: ^(inline_response_200_20 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChannelApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChannelInstanceIdClientActionGetChannelsPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChannelInstanceIdClientActionGetChannelsPostExample
    {
        public void main()
        {


            var apiInstance = new ChannelApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get channels
                inline_response_200_20 result = apiInstance.apiChannelInstanceIdClientActionGetChannelsPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelApi.apiChannelInstanceIdClientActionGetChannelsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChannelApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChannelInstanceIdClientActionGetChannelsPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelApi->apiChannelInstanceIdClientActionGetChannelsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelApi;


my $api_instance = WWW::SwaggerClient::ChannelApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChannelInstanceIdClientActionGetChannelsPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelApi->apiChannelInstanceIdClientActionGetChannelsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChannelApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get channels
    api_response = api_instance.api_channel_instance_id_client_action_get_channels_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelApi->apiChannelInstanceIdClientActionGetChannelsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Channels retrieved successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiChannelInstanceIdClientActionSubscribeToChannelPost

Subscribe to channel

Subscribe to a WhatsApp channel


/api/channel/{instanceId}/client/action/subscribe-to-channel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/channel/{instanceId}/client/action/subscribe-to-channel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelApi;

import java.io.File;
import java.util.*;

public class ChannelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChannelApi apiInstance = new ChannelApi();
        Action_subscribetochannel_body body = ; // Action_subscribetochannel_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionSubscribeToChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionSubscribeToChannelPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelApi;

public class ChannelApiExample {

    public static void main(String[] args) {
        ChannelApi apiInstance = new ChannelApi();
        Action_subscribetochannel_body body = ; // Action_subscribetochannel_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionSubscribeToChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionSubscribeToChannelPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_subscribetochannel_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChannelApi *apiInstance = [[ChannelApi alloc] init];

// Subscribe to channel
[apiInstance apiChannelInstanceIdClientActionSubscribeToChannelPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChannelApi()
var body = ; // {{Action_subscribetochannel_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChannelInstanceIdClientActionSubscribeToChannelPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChannelInstanceIdClientActionSubscribeToChannelPostExample
    {
        public void main()
        {


            var apiInstance = new ChannelApi();
            var body = new Action_subscribetochannel_body(); // Action_subscribetochannel_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Subscribe to channel
                inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionSubscribeToChannelPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelApi.apiChannelInstanceIdClientActionSubscribeToChannelPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChannelApi();
$body = ; // Action_subscribetochannel_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChannelInstanceIdClientActionSubscribeToChannelPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelApi->apiChannelInstanceIdClientActionSubscribeToChannelPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelApi;


my $api_instance = WWW::SwaggerClient::ChannelApi->new();
my $body = WWW::SwaggerClient::Object::Action_subscribetochannel_body->new(); # Action_subscribetochannel_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChannelInstanceIdClientActionSubscribeToChannelPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelApi->apiChannelInstanceIdClientActionSubscribeToChannelPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChannelApi()
body =  # Action_subscribetochannel_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Subscribe to channel
    api_response = api_instance.api_channel_instance_id_client_action_subscribe_to_channel_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelApi->apiChannelInstanceIdClientActionSubscribeToChannelPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Subscribed to channel successfully

Status: 400 - Invalid request

Status: 404 - Channel or instance not found


apiChannelInstanceIdClientActionUnsubscribeFromChannelPost

Unsubscribe from channel

Unsubscribe from a WhatsApp channel


/api/channel/{instanceId}/client/action/unsubscribe-from-channel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/channel/{instanceId}/client/action/unsubscribe-from-channel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelApi;

import java.io.File;
import java.util.*;

public class ChannelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChannelApi apiInstance = new ChannelApi();
        Action_unsubscribefromchannel_body_1 body = ; // Action_unsubscribefromchannel_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionUnsubscribeFromChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionUnsubscribeFromChannelPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelApi;

public class ChannelApiExample {

    public static void main(String[] args) {
        ChannelApi apiInstance = new ChannelApi();
        Action_unsubscribefromchannel_body_1 body = ; // Action_unsubscribefromchannel_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionUnsubscribeFromChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#apiChannelInstanceIdClientActionUnsubscribeFromChannelPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_unsubscribefromchannel_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChannelApi *apiInstance = [[ChannelApi alloc] init];

// Unsubscribe from channel
[apiInstance apiChannelInstanceIdClientActionUnsubscribeFromChannelPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChannelApi()
var body = ; // {{Action_unsubscribefromchannel_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChannelInstanceIdClientActionUnsubscribeFromChannelPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChannelInstanceIdClientActionUnsubscribeFromChannelPostExample
    {
        public void main()
        {


            var apiInstance = new ChannelApi();
            var body = new Action_unsubscribefromchannel_body_1(); // Action_unsubscribefromchannel_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Unsubscribe from channel
                inline_response_200_3 result = apiInstance.apiChannelInstanceIdClientActionUnsubscribeFromChannelPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelApi.apiChannelInstanceIdClientActionUnsubscribeFromChannelPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChannelApi();
$body = ; // Action_unsubscribefromchannel_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChannelInstanceIdClientActionUnsubscribeFromChannelPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelApi->apiChannelInstanceIdClientActionUnsubscribeFromChannelPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelApi;


my $api_instance = WWW::SwaggerClient::ChannelApi->new();
my $body = WWW::SwaggerClient::Object::Action_unsubscribefromchannel_body_1->new(); # Action_unsubscribefromchannel_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChannelInstanceIdClientActionUnsubscribeFromChannelPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelApi->apiChannelInstanceIdClientActionUnsubscribeFromChannelPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChannelApi()
body =  # Action_unsubscribefromchannel_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Unsubscribe from channel
    api_response = api_instance.api_channel_instance_id_client_action_unsubscribe_from_channel_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelApi->apiChannelInstanceIdClientActionUnsubscribeFromChannelPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Unsubscribed from channel successfully

Status: 400 - Invalid request

Status: 404 - Channel or instance not found


instanceIdClientActionCreateChannelPost

Create a new channel

Creates a new WhatsApp channel with specified details


/{instanceId}/client/action/create-channel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/create-channel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelApi;

import java.io.File;
import java.util.*;

public class ChannelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChannelApi apiInstance = new ChannelApi();
        Channel body = ; // Channel | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionCreateChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#instanceIdClientActionCreateChannelPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelApi;

public class ChannelApiExample {

    public static void main(String[] args) {
        ChannelApi apiInstance = new ChannelApi();
        Channel body = ; // Channel | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionCreateChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#instanceIdClientActionCreateChannelPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Channel *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChannelApi *apiInstance = [[ChannelApi alloc] init];

// Create a new channel
[apiInstance instanceIdClientActionCreateChannelPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChannelApi()
var body = ; // {{Channel}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionCreateChannelPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionCreateChannelPostExample
    {
        public void main()
        {


            var apiInstance = new ChannelApi();
            var body = new Channel(); // Channel | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Create a new channel
                inline_response_200_3 result = apiInstance.instanceIdClientActionCreateChannelPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelApi.instanceIdClientActionCreateChannelPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChannelApi();
$body = ; // Channel | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionCreateChannelPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelApi->instanceIdClientActionCreateChannelPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelApi;


my $api_instance = WWW::SwaggerClient::ChannelApi->new();
my $body = WWW::SwaggerClient::Object::Channel->new(); # Channel | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionCreateChannelPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelApi->instanceIdClientActionCreateChannelPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChannelApi()
body =  # Channel | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Create a new channel
    api_response = api_instance.instance_id_client_action_create_channel_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelApi->instanceIdClientActionCreateChannelPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Channel created successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionUnsubscribeFromChannelPost

Unsubscribe from a channel

Unsubscribe from a WhatsApp channel


/{instanceId}/client/action/unsubscribe-from-channel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/unsubscribe-from-channel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChannelApi;

import java.io.File;
import java.util.*;

public class ChannelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChannelApi apiInstance = new ChannelApi();
        Action_unsubscribefromchannel_body body = ; // Action_unsubscribefromchannel_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionUnsubscribeFromChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#instanceIdClientActionUnsubscribeFromChannelPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChannelApi;

public class ChannelApiExample {

    public static void main(String[] args) {
        ChannelApi apiInstance = new ChannelApi();
        Action_unsubscribefromchannel_body body = ; // Action_unsubscribefromchannel_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionUnsubscribeFromChannelPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChannelApi#instanceIdClientActionUnsubscribeFromChannelPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_unsubscribefromchannel_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChannelApi *apiInstance = [[ChannelApi alloc] init];

// Unsubscribe from a channel
[apiInstance instanceIdClientActionUnsubscribeFromChannelPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChannelApi()
var body = ; // {{Action_unsubscribefromchannel_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionUnsubscribeFromChannelPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionUnsubscribeFromChannelPostExample
    {
        public void main()
        {


            var apiInstance = new ChannelApi();
            var body = new Action_unsubscribefromchannel_body(); // Action_unsubscribefromchannel_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Unsubscribe from a channel
                inline_response_200_3 result = apiInstance.instanceIdClientActionUnsubscribeFromChannelPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChannelApi.instanceIdClientActionUnsubscribeFromChannelPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChannelApi();
$body = ; // Action_unsubscribefromchannel_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionUnsubscribeFromChannelPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelApi->instanceIdClientActionUnsubscribeFromChannelPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChannelApi;


my $api_instance = WWW::SwaggerClient::ChannelApi->new();
my $body = WWW::SwaggerClient::Object::Action_unsubscribefromchannel_body->new(); # Action_unsubscribefromchannel_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionUnsubscribeFromChannelPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChannelApi->instanceIdClientActionUnsubscribeFromChannelPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChannelApi()
body =  # Action_unsubscribefromchannel_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Unsubscribe from a channel
    api_response = api_instance.instance_id_client_action_unsubscribe_from_channel_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChannelApi->instanceIdClientActionUnsubscribeFromChannelPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Successfully unsubscribed from channel

Status: 400 - Bad request

Status: 401 - Unauthorized


Chat

apiChatInstanceIdClientActionDeleteChatByIdPost

Delete chat

Delete a chat by its ID


/api/chat/{instanceId}/client/action/delete-chat-by-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/delete-chat-by-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_deletechatbyid_body_1 body = ; // Action_deletechatbyid_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionDeleteChatByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionDeleteChatByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_deletechatbyid_body_1 body = ; // Action_deletechatbyid_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionDeleteChatByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionDeleteChatByIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_deletechatbyid_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Delete chat
[apiInstance apiChatInstanceIdClientActionDeleteChatByIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_deletechatbyid_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionDeleteChatByIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionDeleteChatByIdPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_deletechatbyid_body_1(); // Action_deletechatbyid_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Delete chat
                inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionDeleteChatByIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionDeleteChatByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_deletechatbyid_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionDeleteChatByIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionDeleteChatByIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_deletechatbyid_body_1->new(); # Action_deletechatbyid_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionDeleteChatByIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionDeleteChatByIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_deletechatbyid_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Delete chat
    api_response = api_instance.api_chat_instance_id_client_action_delete_chat_by_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionDeleteChatByIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat deleted successfully

Status: 400 - Invalid request

Status: 404 - Chat or instance not found


apiChatInstanceIdClientActionGetChatsByLabelIdPost

Get chats by label

Get chats filtered by label ID


/api/chat/{instanceId}/client/action/get-chats-by-label-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/get-chats-by-label-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_getchatsbylabelid_body_1 body = ; // Action_getchatsbylabelid_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_23 result = apiInstance.apiChatInstanceIdClientActionGetChatsByLabelIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionGetChatsByLabelIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_getchatsbylabelid_body_1 body = ; // Action_getchatsbylabelid_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_23 result = apiInstance.apiChatInstanceIdClientActionGetChatsByLabelIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionGetChatsByLabelIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getchatsbylabelid_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Get chats by label
[apiInstance apiChatInstanceIdClientActionGetChatsByLabelIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_23 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_getchatsbylabelid_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionGetChatsByLabelIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionGetChatsByLabelIdPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_getchatsbylabelid_body_1(); // Action_getchatsbylabelid_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get chats by label
                inline_response_200_23 result = apiInstance.apiChatInstanceIdClientActionGetChatsByLabelIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionGetChatsByLabelIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_getchatsbylabelid_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionGetChatsByLabelIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionGetChatsByLabelIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_getchatsbylabelid_body_1->new(); # Action_getchatsbylabelid_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionGetChatsByLabelIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionGetChatsByLabelIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_getchatsbylabelid_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get chats by label
    api_response = api_instance.api_chat_instance_id_client_action_get_chats_by_label_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionGetChatsByLabelIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chats retrieved successfully

Status: 400 - Invalid request

Status: 404 - Label or instance not found


apiChatInstanceIdClientActionGetChatsPost

Get all chats

Get list of all chats


/api/chat/{instanceId}/client/action/get-chats

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/get-chats"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_22 result = apiInstance.apiChatInstanceIdClientActionGetChatsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionGetChatsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_22 result = apiInstance.apiChatInstanceIdClientActionGetChatsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionGetChatsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Get all chats
[apiInstance apiChatInstanceIdClientActionGetChatsPostWith:instanceId
              completionHandler: ^(inline_response_200_22 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionGetChatsPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionGetChatsPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get all chats
                inline_response_200_22 result = apiInstance.apiChatInstanceIdClientActionGetChatsPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionGetChatsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionGetChatsPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionGetChatsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionGetChatsPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionGetChatsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get all chats
    api_response = api_instance.api_chat_instance_id_client_action_get_chats_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionGetChatsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Chats retrieved successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiChatInstanceIdClientActionMarkChatUnreadPost

Mark chat as unread

Mark a chat as unread


/api/chat/{instanceId}/client/action/mark-chat-unread

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/mark-chat-unread"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_markchatunread_body body = ; // Action_markchatunread_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionMarkChatUnreadPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionMarkChatUnreadPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_markchatunread_body body = ; // Action_markchatunread_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionMarkChatUnreadPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionMarkChatUnreadPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_markchatunread_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Mark chat as unread
[apiInstance apiChatInstanceIdClientActionMarkChatUnreadPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_markchatunread_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionMarkChatUnreadPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionMarkChatUnreadPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_markchatunread_body(); // Action_markchatunread_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Mark chat as unread
                inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionMarkChatUnreadPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionMarkChatUnreadPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_markchatunread_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionMarkChatUnreadPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionMarkChatUnreadPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_markchatunread_body->new(); # Action_markchatunread_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionMarkChatUnreadPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionMarkChatUnreadPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_markchatunread_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Mark chat as unread
    api_response = api_instance.api_chat_instance_id_client_action_mark_chat_unread_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionMarkChatUnreadPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat marked as unread successfully

Status: 400 - Invalid request

Status: 404 - Chat or instance not found


apiChatInstanceIdClientActionMuteChatPost

Mute chat

Mute a chat


/api/chat/{instanceId}/client/action/mute-chat

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/mute-chat"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_mutechat_body body = ; // Action_mutechat_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionMuteChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionMuteChatPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_mutechat_body body = ; // Action_mutechat_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionMuteChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionMuteChatPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_mutechat_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Mute chat
[apiInstance apiChatInstanceIdClientActionMuteChatPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_mutechat_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionMuteChatPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionMuteChatPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_mutechat_body(); // Action_mutechat_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Mute chat
                inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionMuteChatPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionMuteChatPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_mutechat_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionMuteChatPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionMuteChatPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_mutechat_body->new(); # Action_mutechat_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionMuteChatPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionMuteChatPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_mutechat_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Mute chat
    api_response = api_instance.api_chat_instance_id_client_action_mute_chat_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionMuteChatPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat muted successfully

Status: 400 - Invalid request

Status: 404 - Chat or instance not found


apiChatInstanceIdClientActionPinChatPost

Pin chat

Pin a chat


/api/chat/{instanceId}/client/action/pin-chat

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/pin-chat"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_pinchat_body body = ; // Action_pinchat_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionPinChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionPinChatPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_pinchat_body body = ; // Action_pinchat_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionPinChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionPinChatPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_pinchat_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Pin chat
[apiInstance apiChatInstanceIdClientActionPinChatPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_pinchat_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionPinChatPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionPinChatPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_pinchat_body(); // Action_pinchat_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Pin chat
                inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionPinChatPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionPinChatPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_pinchat_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionPinChatPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionPinChatPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_pinchat_body->new(); # Action_pinchat_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionPinChatPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionPinChatPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_pinchat_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Pin chat
    api_response = api_instance.api_chat_instance_id_client_action_pin_chat_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionPinChatPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat pinned successfully

Status: 400 - Invalid request

Status: 404 - Chat or instance not found


apiChatInstanceIdClientActionSendSeenPost

Send seen

Mark chat as seen


/api/chat/{instanceId}/client/action/send-seen

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/send-seen"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_sendseen_body_1 body = ; // Action_sendseen_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionSendSeenPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionSendSeenPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_sendseen_body_1 body = ; // Action_sendseen_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionSendSeenPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionSendSeenPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_sendseen_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Send seen
[apiInstance apiChatInstanceIdClientActionSendSeenPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_sendseen_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionSendSeenPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionSendSeenPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_sendseen_body_1(); // Action_sendseen_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Send seen
                inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionSendSeenPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionSendSeenPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_sendseen_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionSendSeenPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionSendSeenPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_sendseen_body_1->new(); # Action_sendseen_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionSendSeenPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionSendSeenPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_sendseen_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Send seen
    api_response = api_instance.api_chat_instance_id_client_action_send_seen_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionSendSeenPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat marked as seen successfully

Status: 400 - Invalid request

Status: 404 - Chat or instance not found


apiChatInstanceIdClientActionSyncChatHistoryPost

Sync chat history

Synchronize chat history


/api/chat/{instanceId}/client/action/sync-chat-history

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/sync-chat-history"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_syncchathistory_body body = ; // Action_syncchathistory_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionSyncChatHistoryPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionSyncChatHistoryPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_syncchathistory_body body = ; // Action_syncchathistory_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionSyncChatHistoryPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionSyncChatHistoryPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_syncchathistory_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Sync chat history
[apiInstance apiChatInstanceIdClientActionSyncChatHistoryPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_syncchathistory_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionSyncChatHistoryPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionSyncChatHistoryPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_syncchathistory_body(); // Action_syncchathistory_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Sync chat history
                inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionSyncChatHistoryPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionSyncChatHistoryPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_syncchathistory_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionSyncChatHistoryPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionSyncChatHistoryPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_syncchathistory_body->new(); # Action_syncchathistory_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionSyncChatHistoryPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionSyncChatHistoryPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_syncchathistory_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Sync chat history
    api_response = api_instance.api_chat_instance_id_client_action_sync_chat_history_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionSyncChatHistoryPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat history synced successfully

Status: 400 - Invalid request

Status: 404 - Chat or instance not found


apiChatInstanceIdClientActionUnmuteChatPost

Unmute chat

Unmute a chat


/api/chat/{instanceId}/client/action/unmute-chat

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/chat/{instanceId}/client/action/unmute-chat"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_unmutechat_body_1 body = ; // Action_unmutechat_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionUnmuteChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionUnmuteChatPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_unmutechat_body_1 body = ; // Action_unmutechat_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionUnmuteChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#apiChatInstanceIdClientActionUnmuteChatPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_unmutechat_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Unmute chat
[apiInstance apiChatInstanceIdClientActionUnmuteChatPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_unmutechat_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiChatInstanceIdClientActionUnmuteChatPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiChatInstanceIdClientActionUnmuteChatPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_unmutechat_body_1(); // Action_unmutechat_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Unmute chat
                inline_response_200_3 result = apiInstance.apiChatInstanceIdClientActionUnmuteChatPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.apiChatInstanceIdClientActionUnmuteChatPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_unmutechat_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiChatInstanceIdClientActionUnmuteChatPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->apiChatInstanceIdClientActionUnmuteChatPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_unmutechat_body_1->new(); # Action_unmutechat_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiChatInstanceIdClientActionUnmuteChatPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->apiChatInstanceIdClientActionUnmuteChatPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_unmutechat_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Unmute chat
    api_response = api_instance.api_chat_instance_id_client_action_unmute_chat_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->apiChatInstanceIdClientActionUnmuteChatPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat unmuted successfully

Status: 400 - Invalid request

Status: 404 - Chat or instance not found


instanceIdClientActionDeleteChatByIdPost

Delete a chat

Delete a WhatsApp chat by its ID


/{instanceId}/client/action/delete-chat-by-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/delete-chat-by-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_deletechatbyid_body body = ; // Action_deletechatbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionDeleteChatByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionDeleteChatByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_deletechatbyid_body body = ; // Action_deletechatbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionDeleteChatByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionDeleteChatByIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_deletechatbyid_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Delete a chat
[apiInstance instanceIdClientActionDeleteChatByIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_deletechatbyid_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionDeleteChatByIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionDeleteChatByIdPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_deletechatbyid_body(); // Action_deletechatbyid_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Delete a chat
                inline_response_200_3 result = apiInstance.instanceIdClientActionDeleteChatByIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.instanceIdClientActionDeleteChatByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_deletechatbyid_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionDeleteChatByIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->instanceIdClientActionDeleteChatByIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_deletechatbyid_body->new(); # Action_deletechatbyid_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionDeleteChatByIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->instanceIdClientActionDeleteChatByIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_deletechatbyid_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Delete a chat
    api_response = api_instance.instance_id_client_action_delete_chat_by_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->instanceIdClientActionDeleteChatByIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat deleted successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionGetChatsByLabelIdPost

Get chats by label

Get all WhatsApp chats with a specific label


/{instanceId}/client/action/get-chats-by-label-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-chats-by-label-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_getchatsbylabelid_body body = ; // Action_getchatsbylabelid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_5 result = apiInstance.instanceIdClientActionGetChatsByLabelIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionGetChatsByLabelIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_getchatsbylabelid_body body = ; // Action_getchatsbylabelid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_5 result = apiInstance.instanceIdClientActionGetChatsByLabelIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionGetChatsByLabelIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getchatsbylabelid_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Get chats by label
[apiInstance instanceIdClientActionGetChatsByLabelIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_getchatsbylabelid_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetChatsByLabelIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetChatsByLabelIdPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_getchatsbylabelid_body(); // Action_getchatsbylabelid_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get chats by label
                inline_response_200_5 result = apiInstance.instanceIdClientActionGetChatsByLabelIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.instanceIdClientActionGetChatsByLabelIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_getchatsbylabelid_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetChatsByLabelIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->instanceIdClientActionGetChatsByLabelIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_getchatsbylabelid_body->new(); # Action_getchatsbylabelid_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetChatsByLabelIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->instanceIdClientActionGetChatsByLabelIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_getchatsbylabelid_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get chats by label
    api_response = api_instance.instance_id_client_action_get_chats_by_label_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->instanceIdClientActionGetChatsByLabelIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chats retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionSendSeenPost

Mark chat as seen

Mark a WhatsApp chat as seen/read


/{instanceId}/client/action/send-seen

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/send-seen"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_sendseen_body body = ; // Action_sendseen_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionSendSeenPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionSendSeenPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_sendseen_body body = ; // Action_sendseen_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionSendSeenPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionSendSeenPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_sendseen_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Mark chat as seen
[apiInstance instanceIdClientActionSendSeenPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_sendseen_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionSendSeenPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionSendSeenPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_sendseen_body(); // Action_sendseen_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Mark chat as seen
                inline_response_200_3 result = apiInstance.instanceIdClientActionSendSeenPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.instanceIdClientActionSendSeenPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_sendseen_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionSendSeenPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->instanceIdClientActionSendSeenPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_sendseen_body->new(); # Action_sendseen_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionSendSeenPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->instanceIdClientActionSendSeenPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_sendseen_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Mark chat as seen
    api_response = api_instance.instance_id_client_action_send_seen_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->instanceIdClientActionSendSeenPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat marked as seen successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionUnmuteChatPost

Unmute a chat

Unmute a WhatsApp chat


/{instanceId}/client/action/unmute-chat

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/unmute-chat"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

import java.io.File;
import java.util.*;

public class ChatApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ChatApi apiInstance = new ChatApi();
        Action_unmutechat_body body = ; // Action_unmutechat_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionUnmuteChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionUnmuteChatPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Action_unmutechat_body body = ; // Action_unmutechat_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionUnmuteChatPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#instanceIdClientActionUnmuteChatPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_unmutechat_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ChatApi *apiInstance = [[ChatApi alloc] init];

// Unmute a chat
[apiInstance instanceIdClientActionUnmuteChatPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ChatApi()
var body = ; // {{Action_unmutechat_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionUnmuteChatPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionUnmuteChatPostExample
    {
        public void main()
        {


            var apiInstance = new ChatApi();
            var body = new Action_unmutechat_body(); // Action_unmutechat_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Unmute a chat
                inline_response_200_3 result = apiInstance.instanceIdClientActionUnmuteChatPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.instanceIdClientActionUnmuteChatPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiChatApi();
$body = ; // Action_unmutechat_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionUnmuteChatPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->instanceIdClientActionUnmuteChatPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;


my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Action_unmutechat_body->new(); # Action_unmutechat_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionUnmuteChatPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChatApi->instanceIdClientActionUnmuteChatPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ChatApi()
body =  # Action_unmutechat_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Unmute a chat
    api_response = api_instance.instance_id_client_action_unmute_chat_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChatApi->instanceIdClientActionUnmuteChatPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Chat unmuted successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


Client

apiClientInstanceIdClientActionLogoutPost

Logout client

Logout from WhatsApp client instance


/api/client/{instanceId}/client/action/logout

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/client/{instanceId}/client/action/logout"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientApi;

import java.io.File;
import java.util.*;

public class ClientApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionLogoutPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionLogoutPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientApi;

public class ClientApiExample {

    public static void main(String[] args) {
        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionLogoutPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionLogoutPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ClientApi *apiInstance = [[ClientApi alloc] init];

// Logout client
[apiInstance apiClientInstanceIdClientActionLogoutPostWith:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ClientApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiClientInstanceIdClientActionLogoutPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiClientInstanceIdClientActionLogoutPostExample
    {
        public void main()
        {


            var apiInstance = new ClientApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Logout client
                inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionLogoutPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientApi.apiClientInstanceIdClientActionLogoutPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiClientApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiClientInstanceIdClientActionLogoutPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientApi->apiClientInstanceIdClientActionLogoutPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClientApi;


my $api_instance = WWW::SwaggerClient::ClientApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiClientInstanceIdClientActionLogoutPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientApi->apiClientInstanceIdClientActionLogoutPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ClientApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Logout client
    api_response = api_instance.api_client_instance_id_client_action_logout_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientApi->apiClientInstanceIdClientActionLogoutPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Client logged out successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


apiClientInstanceIdClientActionRebootPost

Reboot instance

Reboot a WhatsApp client instance


/api/client/{instanceId}/client/action/reboot

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/client/{instanceId}/client/action/reboot"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientApi;

import java.io.File;
import java.util.*;

public class ClientApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionRebootPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionRebootPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientApi;

public class ClientApiExample {

    public static void main(String[] args) {
        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionRebootPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionRebootPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ClientApi *apiInstance = [[ClientApi alloc] init];

// Reboot instance
[apiInstance apiClientInstanceIdClientActionRebootPostWith:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ClientApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiClientInstanceIdClientActionRebootPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiClientInstanceIdClientActionRebootPostExample
    {
        public void main()
        {


            var apiInstance = new ClientApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Reboot instance
                inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionRebootPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientApi.apiClientInstanceIdClientActionRebootPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiClientApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiClientInstanceIdClientActionRebootPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientApi->apiClientInstanceIdClientActionRebootPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClientApi;


my $api_instance = WWW::SwaggerClient::ClientApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiClientInstanceIdClientActionRebootPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientApi->apiClientInstanceIdClientActionRebootPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ClientApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Reboot instance
    api_response = api_instance.api_client_instance_id_client_action_reboot_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientApi->apiClientInstanceIdClientActionRebootPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Instance rebooted successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


apiClientInstanceIdClientActionRequestPairingCodePost

Request pairing code

Request a pairing code for WhatsApp client


/api/client/{instanceId}/client/action/request-pairing-code

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/client/{instanceId}/client/action/request-pairing-code"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientApi;

import java.io.File;
import java.util.*;

public class ClientApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ClientApi apiInstance = new ClientApi();
        Action_requestpairingcode_body body = ; // Action_requestpairingcode_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_9 result = apiInstance.apiClientInstanceIdClientActionRequestPairingCodePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionRequestPairingCodePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientApi;

public class ClientApiExample {

    public static void main(String[] args) {
        ClientApi apiInstance = new ClientApi();
        Action_requestpairingcode_body body = ; // Action_requestpairingcode_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_9 result = apiInstance.apiClientInstanceIdClientActionRequestPairingCodePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionRequestPairingCodePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_requestpairingcode_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ClientApi *apiInstance = [[ClientApi alloc] init];

// Request pairing code
[apiInstance apiClientInstanceIdClientActionRequestPairingCodePostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ClientApi()
var body = ; // {{Action_requestpairingcode_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiClientInstanceIdClientActionRequestPairingCodePost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiClientInstanceIdClientActionRequestPairingCodePostExample
    {
        public void main()
        {


            var apiInstance = new ClientApi();
            var body = new Action_requestpairingcode_body(); // Action_requestpairingcode_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Request pairing code
                inline_response_200_9 result = apiInstance.apiClientInstanceIdClientActionRequestPairingCodePost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientApi.apiClientInstanceIdClientActionRequestPairingCodePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiClientApi();
$body = ; // Action_requestpairingcode_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiClientInstanceIdClientActionRequestPairingCodePost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientApi->apiClientInstanceIdClientActionRequestPairingCodePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClientApi;


my $api_instance = WWW::SwaggerClient::ClientApi->new();
my $body = WWW::SwaggerClient::Object::Action_requestpairingcode_body->new(); # Action_requestpairingcode_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiClientInstanceIdClientActionRequestPairingCodePost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientApi->apiClientInstanceIdClientActionRequestPairingCodePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ClientApi()
body =  # Action_requestpairingcode_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Request pairing code
    api_response = api_instance.api_client_instance_id_client_action_request_pairing_code_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientApi->apiClientInstanceIdClientActionRequestPairingCodePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Pairing code requested successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiClientInstanceIdClientActionSendPresenceUnavailablePost

Set presence unavailable

Set client presence status as unavailable


/api/client/{instanceId}/client/action/send-presence-unavailable

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/client/{instanceId}/client/action/send-presence-unavailable"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientApi;

import java.io.File;
import java.util.*;

public class ClientApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionSendPresenceUnavailablePost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionSendPresenceUnavailablePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientApi;

public class ClientApiExample {

    public static void main(String[] args) {
        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionSendPresenceUnavailablePost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientActionSendPresenceUnavailablePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ClientApi *apiInstance = [[ClientApi alloc] init];

// Set presence unavailable
[apiInstance apiClientInstanceIdClientActionSendPresenceUnavailablePostWith:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ClientApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiClientInstanceIdClientActionSendPresenceUnavailablePost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiClientInstanceIdClientActionSendPresenceUnavailablePostExample
    {
        public void main()
        {


            var apiInstance = new ClientApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Set presence unavailable
                inline_response_200_3 result = apiInstance.apiClientInstanceIdClientActionSendPresenceUnavailablePost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientApi.apiClientInstanceIdClientActionSendPresenceUnavailablePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiClientApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiClientInstanceIdClientActionSendPresenceUnavailablePost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientApi->apiClientInstanceIdClientActionSendPresenceUnavailablePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClientApi;


my $api_instance = WWW::SwaggerClient::ClientApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiClientInstanceIdClientActionSendPresenceUnavailablePost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientApi->apiClientInstanceIdClientActionSendPresenceUnavailablePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ClientApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Set presence unavailable
    api_response = api_instance.api_client_instance_id_client_action_send_presence_unavailable_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientApi->apiClientInstanceIdClientActionSendPresenceUnavailablePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Presence set successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


apiClientInstanceIdClientMeGet

Get client info

Retrieve basic client information


/api/client/{instanceId}/client/me

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/client/{instanceId}/client/me"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientApi;

import java.io.File;
import java.util.*;

public class ClientApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_8 result = apiInstance.apiClientInstanceIdClientMeGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientMeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientApi;

public class ClientApiExample {

    public static void main(String[] args) {
        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_8 result = apiInstance.apiClientInstanceIdClientMeGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientMeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ClientApi *apiInstance = [[ClientApi alloc] init];

// Get client info
[apiInstance apiClientInstanceIdClientMeGetWith:instanceId
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ClientApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiClientInstanceIdClientMeGet(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiClientInstanceIdClientMeGetExample
    {
        public void main()
        {


            var apiInstance = new ClientApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get client info
                inline_response_200_8 result = apiInstance.apiClientInstanceIdClientMeGet(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientApi.apiClientInstanceIdClientMeGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiClientApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiClientInstanceIdClientMeGet($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientApi->apiClientInstanceIdClientMeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClientApi;


my $api_instance = WWW::SwaggerClient::ClientApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiClientInstanceIdClientMeGet(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientApi->apiClientInstanceIdClientMeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ClientApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get client info
    api_response = api_instance.api_client_instance_id_client_me_get(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientApi->apiClientInstanceIdClientMeGet: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Client information retrieved successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


apiClientInstanceIdClientQrGet

Get QR code

Retrieve QR code for WhatsApp instance


/api/client/{instanceId}/client/qr

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/client/{instanceId}/client/qr"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientApi;

import java.io.File;
import java.util.*;

public class ClientApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_7 result = apiInstance.apiClientInstanceIdClientQrGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientQrGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientApi;

public class ClientApiExample {

    public static void main(String[] args) {
        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_7 result = apiInstance.apiClientInstanceIdClientQrGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientQrGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ClientApi *apiInstance = [[ClientApi alloc] init];

// Get QR code
[apiInstance apiClientInstanceIdClientQrGetWith:instanceId
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ClientApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiClientInstanceIdClientQrGet(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiClientInstanceIdClientQrGetExample
    {
        public void main()
        {


            var apiInstance = new ClientApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get QR code
                inline_response_200_7 result = apiInstance.apiClientInstanceIdClientQrGet(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientApi.apiClientInstanceIdClientQrGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiClientApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiClientInstanceIdClientQrGet($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientApi->apiClientInstanceIdClientQrGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClientApi;


my $api_instance = WWW::SwaggerClient::ClientApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiClientInstanceIdClientQrGet(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientApi->apiClientInstanceIdClientQrGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ClientApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get QR code
    api_response = api_instance.api_client_instance_id_client_qr_get(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientApi->apiClientInstanceIdClientQrGet: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - QR code retrieved successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


apiClientInstanceIdClientStatusGet

Get client status

Get the status of a WhatsApp client instance


/api/client/{instanceId}/client/status

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/client/{instanceId}/client/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientApi;

import java.io.File;
import java.util.*;

public class ClientApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_6 result = apiInstance.apiClientInstanceIdClientStatusGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientStatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientApi;

public class ClientApiExample {

    public static void main(String[] args) {
        ClientApi apiInstance = new ClientApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_6 result = apiInstance.apiClientInstanceIdClientStatusGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientApi#apiClientInstanceIdClientStatusGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ClientApi *apiInstance = [[ClientApi alloc] init];

// Get client status
[apiInstance apiClientInstanceIdClientStatusGetWith:instanceId
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ClientApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiClientInstanceIdClientStatusGet(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiClientInstanceIdClientStatusGetExample
    {
        public void main()
        {


            var apiInstance = new ClientApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get client status
                inline_response_200_6 result = apiInstance.apiClientInstanceIdClientStatusGet(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientApi.apiClientInstanceIdClientStatusGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiClientApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiClientInstanceIdClientStatusGet($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClientApi->apiClientInstanceIdClientStatusGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClientApi;


my $api_instance = WWW::SwaggerClient::ClientApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiClientInstanceIdClientStatusGet(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientApi->apiClientInstanceIdClientStatusGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ClientApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get client status
    api_response = api_instance.api_client_instance_id_client_status_get(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientApi->apiClientInstanceIdClientStatusGet: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Client status retrieved successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


Contacts

apiContactsInstanceIdClientActionBlockContactPost

Block contact

Block a contact


/api/contacts/{instanceId}/client/action/block-contact

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/contacts/{instanceId}/client/action/block-contact"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        Action_blockcontact_body body = ; // Action_blockcontact_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiContactsInstanceIdClientActionBlockContactPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionBlockContactPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        Action_blockcontact_body body = ; // Action_blockcontact_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiContactsInstanceIdClientActionBlockContactPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionBlockContactPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_blockcontact_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Block contact
[apiInstance apiContactsInstanceIdClientActionBlockContactPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var body = ; // {{Action_blockcontact_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiContactsInstanceIdClientActionBlockContactPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiContactsInstanceIdClientActionBlockContactPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var body = new Action_blockcontact_body(); // Action_blockcontact_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Block contact
                inline_response_200_3 result = apiInstance.apiContactsInstanceIdClientActionBlockContactPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.apiContactsInstanceIdClientActionBlockContactPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$body = ; // Action_blockcontact_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiContactsInstanceIdClientActionBlockContactPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->apiContactsInstanceIdClientActionBlockContactPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $body = WWW::SwaggerClient::Object::Action_blockcontact_body->new(); # Action_blockcontact_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiContactsInstanceIdClientActionBlockContactPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->apiContactsInstanceIdClientActionBlockContactPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
body =  # Action_blockcontact_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Block contact
    api_response = api_instance.api_contacts_instance_id_client_action_block_contact_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->apiContactsInstanceIdClientActionBlockContactPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Contact blocked successfully

Status: 400 - Invalid request

Status: 404 - Contact or instance not found


apiContactsInstanceIdClientActionGetCommonGroupsPost

Get common groups

Get groups common between the instance and a contact


/api/contacts/{instanceId}/client/action/get-common-groups

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/contacts/{instanceId}/client/action/get-common-groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        Action_getcommongroups_body_1 body = ; // Action_getcommongroups_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_29 result = apiInstance.apiContactsInstanceIdClientActionGetCommonGroupsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetCommonGroupsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        Action_getcommongroups_body_1 body = ; // Action_getcommongroups_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_29 result = apiInstance.apiContactsInstanceIdClientActionGetCommonGroupsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetCommonGroupsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getcommongroups_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Get common groups
[apiInstance apiContactsInstanceIdClientActionGetCommonGroupsPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_29 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var body = ; // {{Action_getcommongroups_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiContactsInstanceIdClientActionGetCommonGroupsPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiContactsInstanceIdClientActionGetCommonGroupsPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var body = new Action_getcommongroups_body_1(); // Action_getcommongroups_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get common groups
                inline_response_200_29 result = apiInstance.apiContactsInstanceIdClientActionGetCommonGroupsPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.apiContactsInstanceIdClientActionGetCommonGroupsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$body = ; // Action_getcommongroups_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiContactsInstanceIdClientActionGetCommonGroupsPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetCommonGroupsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $body = WWW::SwaggerClient::Object::Action_getcommongroups_body_1->new(); # Action_getcommongroups_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiContactsInstanceIdClientActionGetCommonGroupsPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetCommonGroupsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
body =  # Action_getcommongroups_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get common groups
    api_response = api_instance.api_contacts_instance_id_client_action_get_common_groups_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetCommonGroupsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Common groups retrieved successfully

Status: 400 - Invalid request

Status: 404 - Contact or instance not found


apiContactsInstanceIdClientActionGetContactByIdPost

Get contact by ID

Get contact information by ID


/api/contacts/{instanceId}/client/action/get-contact-by-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/contacts/{instanceId}/client/action/get-contact-by-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        Action_getcontactbyid_body_1 body = ; // Action_getcontactbyid_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_28 result = apiInstance.apiContactsInstanceIdClientActionGetContactByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetContactByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        Action_getcontactbyid_body_1 body = ; // Action_getcontactbyid_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_28 result = apiInstance.apiContactsInstanceIdClientActionGetContactByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetContactByIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getcontactbyid_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Get contact by ID
[apiInstance apiContactsInstanceIdClientActionGetContactByIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_28 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var body = ; // {{Action_getcontactbyid_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiContactsInstanceIdClientActionGetContactByIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiContactsInstanceIdClientActionGetContactByIdPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var body = new Action_getcontactbyid_body_1(); // Action_getcontactbyid_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get contact by ID
                inline_response_200_28 result = apiInstance.apiContactsInstanceIdClientActionGetContactByIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.apiContactsInstanceIdClientActionGetContactByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$body = ; // Action_getcontactbyid_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiContactsInstanceIdClientActionGetContactByIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetContactByIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $body = WWW::SwaggerClient::Object::Action_getcontactbyid_body_1->new(); # Action_getcontactbyid_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiContactsInstanceIdClientActionGetContactByIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetContactByIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
body =  # Action_getcontactbyid_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get contact by ID
    api_response = api_instance.api_contacts_instance_id_client_action_get_contact_by_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetContactByIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Contact retrieved successfully

Status: 400 - Invalid request

Status: 404 - Contact or instance not found


apiContactsInstanceIdClientActionGetContactsPost

Get all contacts

Get list of all contacts


/api/contacts/{instanceId}/client/action/get-contacts

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/contacts/{instanceId}/client/action/get-contacts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_24 result = apiInstance.apiContactsInstanceIdClientActionGetContactsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetContactsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_24 result = apiInstance.apiContactsInstanceIdClientActionGetContactsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetContactsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Get all contacts
[apiInstance apiContactsInstanceIdClientActionGetContactsPostWith:instanceId
              completionHandler: ^(inline_response_200_24 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiContactsInstanceIdClientActionGetContactsPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiContactsInstanceIdClientActionGetContactsPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get all contacts
                inline_response_200_24 result = apiInstance.apiContactsInstanceIdClientActionGetContactsPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.apiContactsInstanceIdClientActionGetContactsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiContactsInstanceIdClientActionGetContactsPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetContactsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiContactsInstanceIdClientActionGetContactsPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetContactsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get all contacts
    api_response = api_instance.api_contacts_instance_id_client_action_get_contacts_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetContactsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Contacts retrieved successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiContactsInstanceIdClientActionGetFormattedNumberPost

Get formatted number

Get a formatted phone number


/api/contacts/{instanceId}/client/action/get-formatted-number

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/contacts/{instanceId}/client/action/get-formatted-number"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        Action_getformattednumber_body_1 body = ; // Action_getformattednumber_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_25 result = apiInstance.apiContactsInstanceIdClientActionGetFormattedNumberPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetFormattedNumberPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        Action_getformattednumber_body_1 body = ; // Action_getformattednumber_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_25 result = apiInstance.apiContactsInstanceIdClientActionGetFormattedNumberPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetFormattedNumberPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getformattednumber_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Get formatted number
[apiInstance apiContactsInstanceIdClientActionGetFormattedNumberPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_25 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var body = ; // {{Action_getformattednumber_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiContactsInstanceIdClientActionGetFormattedNumberPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiContactsInstanceIdClientActionGetFormattedNumberPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var body = new Action_getformattednumber_body_1(); // Action_getformattednumber_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get formatted number
                inline_response_200_25 result = apiInstance.apiContactsInstanceIdClientActionGetFormattedNumberPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.apiContactsInstanceIdClientActionGetFormattedNumberPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$body = ; // Action_getformattednumber_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiContactsInstanceIdClientActionGetFormattedNumberPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetFormattedNumberPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $body = WWW::SwaggerClient::Object::Action_getformattednumber_body_1->new(); # Action_getformattednumber_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiContactsInstanceIdClientActionGetFormattedNumberPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetFormattedNumberPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
body =  # Action_getformattednumber_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get formatted number
    api_response = api_instance.api_contacts_instance_id_client_action_get_formatted_number_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetFormattedNumberPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Number formatted successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiContactsInstanceIdClientActionGetProfilePicUrlPost

Get profile picture URL

Get the profile picture URL of a contact


/api/contacts/{instanceId}/client/action/get-profile-pic-url

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/contacts/{instanceId}/client/action/get-profile-pic-url"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        Action_getprofilepicurl_body body = ; // Action_getprofilepicurl_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_27 result = apiInstance.apiContactsInstanceIdClientActionGetProfilePicUrlPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetProfilePicUrlPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        Action_getprofilepicurl_body body = ; // Action_getprofilepicurl_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_27 result = apiInstance.apiContactsInstanceIdClientActionGetProfilePicUrlPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionGetProfilePicUrlPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getprofilepicurl_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Get profile picture URL
[apiInstance apiContactsInstanceIdClientActionGetProfilePicUrlPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_27 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var body = ; // {{Action_getprofilepicurl_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiContactsInstanceIdClientActionGetProfilePicUrlPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiContactsInstanceIdClientActionGetProfilePicUrlPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var body = new Action_getprofilepicurl_body(); // Action_getprofilepicurl_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get profile picture URL
                inline_response_200_27 result = apiInstance.apiContactsInstanceIdClientActionGetProfilePicUrlPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.apiContactsInstanceIdClientActionGetProfilePicUrlPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$body = ; // Action_getprofilepicurl_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiContactsInstanceIdClientActionGetProfilePicUrlPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetProfilePicUrlPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $body = WWW::SwaggerClient::Object::Action_getprofilepicurl_body->new(); # Action_getprofilepicurl_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiContactsInstanceIdClientActionGetProfilePicUrlPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetProfilePicUrlPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
body =  # Action_getprofilepicurl_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get profile picture URL
    api_response = api_instance.api_contacts_instance_id_client_action_get_profile_pic_url_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->apiContactsInstanceIdClientActionGetProfilePicUrlPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Profile picture URL retrieved successfully

Status: 400 - Invalid request

Status: 404 - Contact or instance not found


apiContactsInstanceIdClientActionIsRegisteredUserPost

Check if registered user

Check if a contact is a registered WhatsApp user


/api/contacts/{instanceId}/client/action/is-registered-user

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/contacts/{instanceId}/client/action/is-registered-user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        Action_isregistereduser_body body = ; // Action_isregistereduser_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_26 result = apiInstance.apiContactsInstanceIdClientActionIsRegisteredUserPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionIsRegisteredUserPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        Action_isregistereduser_body body = ; // Action_isregistereduser_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_26 result = apiInstance.apiContactsInstanceIdClientActionIsRegisteredUserPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#apiContactsInstanceIdClientActionIsRegisteredUserPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_isregistereduser_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Check if registered user
[apiInstance apiContactsInstanceIdClientActionIsRegisteredUserPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_26 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var body = ; // {{Action_isregistereduser_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiContactsInstanceIdClientActionIsRegisteredUserPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiContactsInstanceIdClientActionIsRegisteredUserPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var body = new Action_isregistereduser_body(); // Action_isregistereduser_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Check if registered user
                inline_response_200_26 result = apiInstance.apiContactsInstanceIdClientActionIsRegisteredUserPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.apiContactsInstanceIdClientActionIsRegisteredUserPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$body = ; // Action_isregistereduser_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiContactsInstanceIdClientActionIsRegisteredUserPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->apiContactsInstanceIdClientActionIsRegisteredUserPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $body = WWW::SwaggerClient::Object::Action_isregistereduser_body->new(); # Action_isregistereduser_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiContactsInstanceIdClientActionIsRegisteredUserPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->apiContactsInstanceIdClientActionIsRegisteredUserPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
body =  # Action_isregistereduser_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Check if registered user
    api_response = api_instance.api_contacts_instance_id_client_action_is_registered_user_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->apiContactsInstanceIdClientActionIsRegisteredUserPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Registration status checked successfully

Status: 400 - Invalid request

Status: 404 - Contact or instance not found


instanceIdClientActionGetContactByIdPost

Get contact by ID

Get a contact by their ID


/{instanceId}/client/action/get-contact-by-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-contact-by-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        Action_getcontactbyid_body body = ; // Action_getcontactbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_13 result = apiInstance.instanceIdClientActionGetContactByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#instanceIdClientActionGetContactByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        Action_getcontactbyid_body body = ; // Action_getcontactbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_13 result = apiInstance.instanceIdClientActionGetContactByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#instanceIdClientActionGetContactByIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getcontactbyid_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Get contact by ID
[apiInstance instanceIdClientActionGetContactByIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_13 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var body = ; // {{Action_getcontactbyid_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetContactByIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetContactByIdPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var body = new Action_getcontactbyid_body(); // Action_getcontactbyid_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get contact by ID
                inline_response_200_13 result = apiInstance.instanceIdClientActionGetContactByIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.instanceIdClientActionGetContactByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$body = ; // Action_getcontactbyid_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetContactByIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->instanceIdClientActionGetContactByIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $body = WWW::SwaggerClient::Object::Action_getcontactbyid_body->new(); # Action_getcontactbyid_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetContactByIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->instanceIdClientActionGetContactByIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
body =  # Action_getcontactbyid_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get contact by ID
    api_response = api_instance.instance_id_client_action_get_contact_by_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->instanceIdClientActionGetContactByIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Contact retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionGetContactsPost

Get all contacts

Get all WhatsApp contacts


/{instanceId}/client/action/get-contacts

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-contacts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContactsApi;

import java.io.File;
import java.util.*;

public class ContactsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContactsApi apiInstance = new ContactsApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_11 result = apiInstance.instanceIdClientActionGetContactsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#instanceIdClientActionGetContactsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContactsApi;

public class ContactsApiExample {

    public static void main(String[] args) {
        ContactsApi apiInstance = new ContactsApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_11 result = apiInstance.instanceIdClientActionGetContactsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContactsApi#instanceIdClientActionGetContactsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

ContactsApi *apiInstance = [[ContactsApi alloc] init];

// Get all contacts
[apiInstance instanceIdClientActionGetContactsPostWith:instanceId
              completionHandler: ^(inline_response_200_11 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.ContactsApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetContactsPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetContactsPostExample
    {
        public void main()
        {


            var apiInstance = new ContactsApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get all contacts
                inline_response_200_11 result = apiInstance.instanceIdClientActionGetContactsPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContactsApi.instanceIdClientActionGetContactsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiContactsApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetContactsPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactsApi->instanceIdClientActionGetContactsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContactsApi;


my $api_instance = WWW::SwaggerClient::ContactsApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetContactsPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ContactsApi->instanceIdClientActionGetContactsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.ContactsApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get all contacts
    api_response = api_instance.instance_id_client_action_get_contacts_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContactsApi->instanceIdClientActionGetContactsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Contacts retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


Group

apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost

Accept member requests

Accept group membership requests


/api/group/{instanceId}/client/action/accept-group-member-requests

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/accept-group-member-requests"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_acceptgroupmemberrequests_body_1 body = ; // Action_acceptgroupmemberrequests_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_acceptgroupmemberrequests_body_1 body = ; // Action_acceptgroupmemberrequests_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_acceptgroupmemberrequests_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Accept member requests
[apiInstance apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_acceptgroupmemberrequests_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_acceptgroupmemberrequests_body_1(); // Action_acceptgroupmemberrequests_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Accept member requests
                inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_acceptgroupmemberrequests_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_acceptgroupmemberrequests_body_1->new(); # Action_acceptgroupmemberrequests_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_acceptgroupmemberrequests_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Accept member requests
    api_response = api_instance.api_group_instance_id_client_action_accept_group_member_requests_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionAcceptGroupMemberRequestsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Member requests accepted successfully

Status: 400 - Invalid request

Status: 404 - Group or instance not found


apiGroupInstanceIdClientActionAcceptInvitePost

Accept invite

Accept a group invite


/api/group/{instanceId}/client/action/accept-invite

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/accept-invite"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_acceptinvite_body body = ; // Action_acceptinvite_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionAcceptInvitePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionAcceptInvitePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_acceptinvite_body body = ; // Action_acceptinvite_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionAcceptInvitePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionAcceptInvitePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_acceptinvite_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Accept invite
[apiInstance apiGroupInstanceIdClientActionAcceptInvitePostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_acceptinvite_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionAcceptInvitePost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionAcceptInvitePostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_acceptinvite_body(); // Action_acceptinvite_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Accept invite
                inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionAcceptInvitePost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionAcceptInvitePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_acceptinvite_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionAcceptInvitePost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionAcceptInvitePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_acceptinvite_body->new(); # Action_acceptinvite_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionAcceptInvitePost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionAcceptInvitePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_acceptinvite_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Accept invite
    api_response = api_instance.api_group_instance_id_client_action_accept_invite_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionAcceptInvitePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Invite accepted successfully

Status: 400 - Invalid request

Status: 404 - Invite or instance not found


apiGroupInstanceIdClientActionCreateGroupPost

Create group

Create a new WhatsApp group


/api/group/{instanceId}/client/action/create-group

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/create-group"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_creategroup_body_1 body = ; // Action_creategroup_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_30 result = apiInstance.apiGroupInstanceIdClientActionCreateGroupPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionCreateGroupPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_creategroup_body_1 body = ; // Action_creategroup_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_30 result = apiInstance.apiGroupInstanceIdClientActionCreateGroupPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionCreateGroupPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_creategroup_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Create group
[apiInstance apiGroupInstanceIdClientActionCreateGroupPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_30 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_creategroup_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionCreateGroupPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionCreateGroupPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_creategroup_body_1(); // Action_creategroup_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Create group
                inline_response_200_30 result = apiInstance.apiGroupInstanceIdClientActionCreateGroupPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionCreateGroupPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_creategroup_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionCreateGroupPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionCreateGroupPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_creategroup_body_1->new(); # Action_creategroup_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionCreateGroupPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionCreateGroupPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_creategroup_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Create group
    api_response = api_instance.api_group_instance_id_client_action_create_group_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionCreateGroupPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Group created successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiGroupInstanceIdClientActionGetGroupInfoPost

Get group info

Get information about a group


/api/group/{instanceId}/client/action/get-group-info

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/get-group-info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_getgroupinfo_body body = ; // Action_getgroupinfo_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_32 result = apiInstance.apiGroupInstanceIdClientActionGetGroupInfoPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionGetGroupInfoPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_getgroupinfo_body body = ; // Action_getgroupinfo_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_32 result = apiInstance.apiGroupInstanceIdClientActionGetGroupInfoPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionGetGroupInfoPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getgroupinfo_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Get group info
[apiInstance apiGroupInstanceIdClientActionGetGroupInfoPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_32 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_getgroupinfo_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionGetGroupInfoPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionGetGroupInfoPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_getgroupinfo_body(); // Action_getgroupinfo_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get group info
                inline_response_200_32 result = apiInstance.apiGroupInstanceIdClientActionGetGroupInfoPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionGetGroupInfoPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_getgroupinfo_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionGetGroupInfoPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionGetGroupInfoPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_getgroupinfo_body->new(); # Action_getgroupinfo_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionGetGroupInfoPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionGetGroupInfoPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_getgroupinfo_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get group info
    api_response = api_instance.api_group_instance_id_client_action_get_group_info_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionGetGroupInfoPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Group information retrieved successfully

Status: 400 - Invalid request

Status: 404 - Group or instance not found


apiGroupInstanceIdClientActionGetGroupParticipantsPost

Get group participants

Get list of participants in a group


/api/group/{instanceId}/client/action/get-group-participants

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/get-group-participants"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_getgroupparticipants_body body = ; // Action_getgroupparticipants_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_31 result = apiInstance.apiGroupInstanceIdClientActionGetGroupParticipantsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionGetGroupParticipantsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_getgroupparticipants_body body = ; // Action_getgroupparticipants_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_31 result = apiInstance.apiGroupInstanceIdClientActionGetGroupParticipantsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionGetGroupParticipantsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getgroupparticipants_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Get group participants
[apiInstance apiGroupInstanceIdClientActionGetGroupParticipantsPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_31 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_getgroupparticipants_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionGetGroupParticipantsPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionGetGroupParticipantsPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_getgroupparticipants_body(); // Action_getgroupparticipants_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get group participants
                inline_response_200_31 result = apiInstance.apiGroupInstanceIdClientActionGetGroupParticipantsPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionGetGroupParticipantsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_getgroupparticipants_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionGetGroupParticipantsPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionGetGroupParticipantsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_getgroupparticipants_body->new(); # Action_getgroupparticipants_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionGetGroupParticipantsPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionGetGroupParticipantsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_getgroupparticipants_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get group participants
    api_response = api_instance.api_group_instance_id_client_action_get_group_participants_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionGetGroupParticipantsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Participants retrieved successfully

Status: 400 - Invalid request

Status: 404 - Group or instance not found


apiGroupInstanceIdClientActionRemoveGroupParticipantPost

Remove participant

Remove a participant from a group


/api/group/{instanceId}/client/action/remove-group-participant

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/remove-group-participant"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_removegroupparticipant_body body = ; // Action_removegroupparticipant_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionRemoveGroupParticipantPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionRemoveGroupParticipantPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_removegroupparticipant_body body = ; // Action_removegroupparticipant_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionRemoveGroupParticipantPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionRemoveGroupParticipantPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_removegroupparticipant_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Remove participant
[apiInstance apiGroupInstanceIdClientActionRemoveGroupParticipantPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_removegroupparticipant_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionRemoveGroupParticipantPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionRemoveGroupParticipantPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_removegroupparticipant_body(); // Action_removegroupparticipant_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Remove participant
                inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionRemoveGroupParticipantPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionRemoveGroupParticipantPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_removegroupparticipant_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionRemoveGroupParticipantPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionRemoveGroupParticipantPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_removegroupparticipant_body->new(); # Action_removegroupparticipant_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionRemoveGroupParticipantPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionRemoveGroupParticipantPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_removegroupparticipant_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Remove participant
    api_response = api_instance.api_group_instance_id_client_action_remove_group_participant_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionRemoveGroupParticipantPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Participant removed successfully

Status: 400 - Invalid request

Status: 404 - Group, participant, or instance not found


apiGroupInstanceIdClientActionUpdateGroupInfoPost

Update group info

Update group information


/api/group/{instanceId}/client/action/update-group-info

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/update-group-info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_updategroupinfo_body_1 body = ; // Action_updategroupinfo_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionUpdateGroupInfoPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionUpdateGroupInfoPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_updategroupinfo_body_1 body = ; // Action_updategroupinfo_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionUpdateGroupInfoPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionUpdateGroupInfoPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_updategroupinfo_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Update group info
[apiInstance apiGroupInstanceIdClientActionUpdateGroupInfoPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_updategroupinfo_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionUpdateGroupInfoPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionUpdateGroupInfoPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_updategroupinfo_body_1(); // Action_updategroupinfo_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Update group info
                inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionUpdateGroupInfoPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionUpdateGroupInfoPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_updategroupinfo_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionUpdateGroupInfoPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionUpdateGroupInfoPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_updategroupinfo_body_1->new(); # Action_updategroupinfo_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionUpdateGroupInfoPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionUpdateGroupInfoPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_updategroupinfo_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Update group info
    api_response = api_instance.api_group_instance_id_client_action_update_group_info_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionUpdateGroupInfoPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Group information updated successfully

Status: 400 - Invalid request

Status: 404 - Group or instance not found


apiGroupInstanceIdClientActionUpdateGroupSettingsPost

Update group settings

Update group settings


/api/group/{instanceId}/client/action/update-group-settings

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/group/{instanceId}/client/action/update-group-settings"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_updategroupsettings_body body = ; // Action_updategroupsettings_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionUpdateGroupSettingsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionUpdateGroupSettingsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_updategroupsettings_body body = ; // Action_updategroupsettings_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionUpdateGroupSettingsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#apiGroupInstanceIdClientActionUpdateGroupSettingsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_updategroupsettings_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Update group settings
[apiInstance apiGroupInstanceIdClientActionUpdateGroupSettingsPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_updategroupsettings_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiGroupInstanceIdClientActionUpdateGroupSettingsPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiGroupInstanceIdClientActionUpdateGroupSettingsPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_updategroupsettings_body(); // Action_updategroupsettings_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Update group settings
                inline_response_200_3 result = apiInstance.apiGroupInstanceIdClientActionUpdateGroupSettingsPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.apiGroupInstanceIdClientActionUpdateGroupSettingsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_updategroupsettings_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiGroupInstanceIdClientActionUpdateGroupSettingsPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->apiGroupInstanceIdClientActionUpdateGroupSettingsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_updategroupsettings_body->new(); # Action_updategroupsettings_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiGroupInstanceIdClientActionUpdateGroupSettingsPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->apiGroupInstanceIdClientActionUpdateGroupSettingsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_updategroupsettings_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Update group settings
    api_response = api_instance.api_group_instance_id_client_action_update_group_settings_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->apiGroupInstanceIdClientActionUpdateGroupSettingsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Group settings updated successfully

Status: 400 - Invalid request

Status: 404 - Group or instance not found


instanceIdClientActionAcceptGroupMemberRequestsPost

Accept group member requests

Accept pending group join requests


/{instanceId}/client/action/accept-group-member-requests

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/accept-group-member-requests"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_acceptgroupmemberrequests_body body = ; // Action_acceptgroupmemberrequests_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionAcceptGroupMemberRequestsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionAcceptGroupMemberRequestsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_acceptgroupmemberrequests_body body = ; // Action_acceptgroupmemberrequests_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionAcceptGroupMemberRequestsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionAcceptGroupMemberRequestsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_acceptgroupmemberrequests_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Accept group member requests
[apiInstance instanceIdClientActionAcceptGroupMemberRequestsPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_acceptgroupmemberrequests_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionAcceptGroupMemberRequestsPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionAcceptGroupMemberRequestsPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_acceptgroupmemberrequests_body(); // Action_acceptgroupmemberrequests_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Accept group member requests
                inline_response_200_3 result = apiInstance.instanceIdClientActionAcceptGroupMemberRequestsPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.instanceIdClientActionAcceptGroupMemberRequestsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_acceptgroupmemberrequests_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionAcceptGroupMemberRequestsPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->instanceIdClientActionAcceptGroupMemberRequestsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_acceptgroupmemberrequests_body->new(); # Action_acceptgroupmemberrequests_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionAcceptGroupMemberRequestsPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->instanceIdClientActionAcceptGroupMemberRequestsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_acceptgroupmemberrequests_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Accept group member requests
    api_response = api_instance.instance_id_client_action_accept_group_member_requests_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->instanceIdClientActionAcceptGroupMemberRequestsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Group member requests accepted successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionCreateGroupPost

Create group

Create a new WhatsApp group


/{instanceId}/client/action/create-group

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/create-group"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_creategroup_body body = ; // Action_creategroup_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_10 result = apiInstance.instanceIdClientActionCreateGroupPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionCreateGroupPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_creategroup_body body = ; // Action_creategroup_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_10 result = apiInstance.instanceIdClientActionCreateGroupPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionCreateGroupPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_creategroup_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Create group
[apiInstance instanceIdClientActionCreateGroupPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_10 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_creategroup_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionCreateGroupPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionCreateGroupPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_creategroup_body(); // Action_creategroup_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Create group
                inline_response_200_10 result = apiInstance.instanceIdClientActionCreateGroupPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.instanceIdClientActionCreateGroupPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_creategroup_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionCreateGroupPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->instanceIdClientActionCreateGroupPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_creategroup_body->new(); # Action_creategroup_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionCreateGroupPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->instanceIdClientActionCreateGroupPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_creategroup_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Create group
    api_response = api_instance.instance_id_client_action_create_group_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->instanceIdClientActionCreateGroupPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Group created successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionGetCommonGroupsPost

Get common groups

Get groups in common with a contact


/{instanceId}/client/action/get-common-groups

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-common-groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_getcommongroups_body body = ; // Action_getcommongroups_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_14 result = apiInstance.instanceIdClientActionGetCommonGroupsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionGetCommonGroupsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_getcommongroups_body body = ; // Action_getcommongroups_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_14 result = apiInstance.instanceIdClientActionGetCommonGroupsPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionGetCommonGroupsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getcommongroups_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Get common groups
[apiInstance instanceIdClientActionGetCommonGroupsPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_14 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_getcommongroups_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetCommonGroupsPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetCommonGroupsPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_getcommongroups_body(); // Action_getcommongroups_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get common groups
                inline_response_200_14 result = apiInstance.instanceIdClientActionGetCommonGroupsPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.instanceIdClientActionGetCommonGroupsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_getcommongroups_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetCommonGroupsPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->instanceIdClientActionGetCommonGroupsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_getcommongroups_body->new(); # Action_getcommongroups_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetCommonGroupsPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->instanceIdClientActionGetCommonGroupsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_getcommongroups_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get common groups
    api_response = api_instance.instance_id_client_action_get_common_groups_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->instanceIdClientActionGetCommonGroupsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Common groups retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionUpdateGroupInfoPost

Update group info

Update WhatsApp group information


/{instanceId}/client/action/update-group-info

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/update-group-info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        GroupApi apiInstance = new GroupApi();
        Action_updategroupinfo_body body = ; // Action_updategroupinfo_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionUpdateGroupInfoPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionUpdateGroupInfoPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        Action_updategroupinfo_body body = ; // Action_updategroupinfo_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionUpdateGroupInfoPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#instanceIdClientActionUpdateGroupInfoPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_updategroupinfo_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

GroupApi *apiInstance = [[GroupApi alloc] init];

// Update group info
[apiInstance instanceIdClientActionUpdateGroupInfoPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.GroupApi()
var body = ; // {{Action_updategroupinfo_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionUpdateGroupInfoPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionUpdateGroupInfoPostExample
    {
        public void main()
        {


            var apiInstance = new GroupApi();
            var body = new Action_updategroupinfo_body(); // Action_updategroupinfo_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Update group info
                inline_response_200_3 result = apiInstance.instanceIdClientActionUpdateGroupInfoPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.instanceIdClientActionUpdateGroupInfoPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiGroupApi();
$body = ; // Action_updategroupinfo_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionUpdateGroupInfoPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->instanceIdClientActionUpdateGroupInfoPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;


my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $body = WWW::SwaggerClient::Object::Action_updategroupinfo_body->new(); # Action_updategroupinfo_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionUpdateGroupInfoPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->instanceIdClientActionUpdateGroupInfoPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.GroupApi()
body =  # Action_updategroupinfo_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Update group info
    api_response = api_instance.instance_id_client_action_update_group_info_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->instanceIdClientActionUpdateGroupInfoPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Group info updated successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


Instances

apiInstancesGet

Get all instances

Get all WhatsApp instances


/api/instances

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/instances"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InstancesApi;

import java.io.File;
import java.util.*;

public class InstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InstancesApi apiInstance = new InstancesApi();
        try {
            inline_response_200_1 result = apiInstance.apiInstancesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InstancesApi;

public class InstancesApiExample {

    public static void main(String[] args) {
        InstancesApi apiInstance = new InstancesApi();
        try {
            inline_response_200_1 result = apiInstance.apiInstancesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

InstancesApi *apiInstance = [[InstancesApi alloc] init];

// Get all instances
[apiInstance apiInstancesGetWithCompletionHandler: 
              ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.InstancesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiInstancesGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiInstancesGetExample
    {
        public void main()
        {


            var apiInstance = new InstancesApi();

            try
            {
                // Get all instances
                inline_response_200_1 result = apiInstance.apiInstancesGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InstancesApi.apiInstancesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInstancesApi();

try {
    $result = $api_instance->apiInstancesGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InstancesApi->apiInstancesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InstancesApi;


my $api_instance = WWW::SwaggerClient::InstancesApi->new();

eval { 
    my $result = $api_instance->apiInstancesGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InstancesApi->apiInstancesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.InstancesApi()

try: 
    # Get all instances
    api_response = api_instance.api_instances_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InstancesApi->apiInstancesGet: %s\n" % e)

Parameters

Responses

Status: 200 - Instances retrieved successfully

Status: 401 - Unauthorized


apiInstancesInstanceIdDelete

Delete instance

Delete a WhatsApp instance


/api/instances/{instanceId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/instances/{instanceId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InstancesApi;

import java.io.File;
import java.util.*;

public class InstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InstancesApi apiInstance = new InstancesApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiInstancesInstanceIdDelete(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesInstanceIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InstancesApi;

public class InstancesApiExample {

    public static void main(String[] args) {
        InstancesApi apiInstance = new InstancesApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiInstancesInstanceIdDelete(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesInstanceIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

InstancesApi *apiInstance = [[InstancesApi alloc] init];

// Delete instance
[apiInstance apiInstancesInstanceIdDeleteWith:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.InstancesApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiInstancesInstanceIdDelete(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiInstancesInstanceIdDeleteExample
    {
        public void main()
        {


            var apiInstance = new InstancesApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Delete instance
                inline_response_200_3 result = apiInstance.apiInstancesInstanceIdDelete(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InstancesApi.apiInstancesInstanceIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInstancesApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiInstancesInstanceIdDelete($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InstancesApi->apiInstancesInstanceIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InstancesApi;


my $api_instance = WWW::SwaggerClient::InstancesApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiInstancesInstanceIdDelete(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InstancesApi->apiInstancesInstanceIdDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.InstancesApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Delete instance
    api_response = api_instance.api_instances_instance_id_delete(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InstancesApi->apiInstancesInstanceIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Instance deleted successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


apiInstancesInstanceIdGet

Get instance

Get a single WhatsApp instance


/api/instances/{instanceId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/instances/{instanceId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InstancesApi;

import java.io.File;
import java.util.*;

public class InstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InstancesApi apiInstance = new InstancesApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_2 result = apiInstance.apiInstancesInstanceIdGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesInstanceIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InstancesApi;

public class InstancesApiExample {

    public static void main(String[] args) {
        InstancesApi apiInstance = new InstancesApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_2 result = apiInstance.apiInstancesInstanceIdGet(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesInstanceIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

InstancesApi *apiInstance = [[InstancesApi alloc] init];

// Get instance
[apiInstance apiInstancesInstanceIdGetWith:instanceId
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.InstancesApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiInstancesInstanceIdGet(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiInstancesInstanceIdGetExample
    {
        public void main()
        {


            var apiInstance = new InstancesApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get instance
                inline_response_200_2 result = apiInstance.apiInstancesInstanceIdGet(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InstancesApi.apiInstancesInstanceIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInstancesApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiInstancesInstanceIdGet($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InstancesApi->apiInstancesInstanceIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InstancesApi;


my $api_instance = WWW::SwaggerClient::InstancesApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiInstancesInstanceIdGet(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InstancesApi->apiInstancesInstanceIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.InstancesApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get instance
    api_response = api_instance.api_instances_instance_id_get(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InstancesApi->apiInstancesInstanceIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Instance retrieved successfully

Status: 400 - Invalid instance ID

Status: 404 - Instance not found


apiInstancesInstanceIdPut

Update instance

Update a WhatsApp instance


/api/instances/{instanceId}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/instances/{instanceId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InstancesApi;

import java.io.File;
import java.util.*;

public class InstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InstancesApi apiInstance = new InstancesApi();
        Instances_instanceId_body body = ; // Instances_instanceId_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_2 result = apiInstance.apiInstancesInstanceIdPut(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesInstanceIdPut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InstancesApi;

public class InstancesApiExample {

    public static void main(String[] args) {
        InstancesApi apiInstance = new InstancesApi();
        Instances_instanceId_body body = ; // Instances_instanceId_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_2 result = apiInstance.apiInstancesInstanceIdPut(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesInstanceIdPut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Instances_instanceId_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

InstancesApi *apiInstance = [[InstancesApi alloc] init];

// Update instance
[apiInstance apiInstancesInstanceIdPutWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.InstancesApi()
var body = ; // {{Instances_instanceId_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiInstancesInstanceIdPut(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiInstancesInstanceIdPutExample
    {
        public void main()
        {


            var apiInstance = new InstancesApi();
            var body = new Instances_instanceId_body(); // Instances_instanceId_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Update instance
                inline_response_200_2 result = apiInstance.apiInstancesInstanceIdPut(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InstancesApi.apiInstancesInstanceIdPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInstancesApi();
$body = ; // Instances_instanceId_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiInstancesInstanceIdPut($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InstancesApi->apiInstancesInstanceIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InstancesApi;


my $api_instance = WWW::SwaggerClient::InstancesApi->new();
my $body = WWW::SwaggerClient::Object::Instances_instanceId_body->new(); # Instances_instanceId_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiInstancesInstanceIdPut(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InstancesApi->apiInstancesInstanceIdPut: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.InstancesApi()
body =  # Instances_instanceId_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Update instance
    api_response = api_instance.api_instances_instance_id_put(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InstancesApi->apiInstancesInstanceIdPut: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Instance updated successfully

Status: 400 - Invalid request body

Status: 404 - Instance not found

Status: 422 - Invalid webhook URL or events format


apiInstancesPost

Create instance

Create a new WhatsApp instance


/api/instances

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/api/instances"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InstancesApi;

import java.io.File;
import java.util.*;

public class InstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        InstancesApi apiInstance = new InstancesApi();
        try {
            inline_response_200_2 result = apiInstance.apiInstancesPost();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InstancesApi;

public class InstancesApiExample {

    public static void main(String[] args) {
        InstancesApi apiInstance = new InstancesApi();
        try {
            inline_response_200_2 result = apiInstance.apiInstancesPost();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstancesApi#apiInstancesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

InstancesApi *apiInstance = [[InstancesApi alloc] init];

// Create instance
[apiInstance apiInstancesPostWithCompletionHandler: 
              ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.InstancesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiInstancesPost(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiInstancesPostExample
    {
        public void main()
        {


            var apiInstance = new InstancesApi();

            try
            {
                // Create instance
                inline_response_200_2 result = apiInstance.apiInstancesPost();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InstancesApi.apiInstancesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiInstancesApi();

try {
    $result = $api_instance->apiInstancesPost();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InstancesApi->apiInstancesPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InstancesApi;


my $api_instance = WWW::SwaggerClient::InstancesApi->new();

eval { 
    my $result = $api_instance->apiInstancesPost();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InstancesApi->apiInstancesPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.InstancesApi()

try: 
    # Create instance
    api_response = api_instance.api_instances_post()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InstancesApi->apiInstancesPost: %s\n" % e)

Parameters

Responses

Status: 200 - Instance created successfully

Status: 401 - Unauthorized

Status: 403 - Instance limit reached


Labels

instanceIdClientActionGetLabelByIdPost

Get label by ID

Get a WhatsApp label by its ID


/{instanceId}/client/action/get-label-by-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-label-by-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabelsApi;

import java.io.File;
import java.util.*;

public class LabelsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        LabelsApi apiInstance = new LabelsApi();
        Action_getlabelbyid_body body = ; // Action_getlabelbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_18 result = apiInstance.instanceIdClientActionGetLabelByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabelsApi#instanceIdClientActionGetLabelByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabelsApi;

public class LabelsApiExample {

    public static void main(String[] args) {
        LabelsApi apiInstance = new LabelsApi();
        Action_getlabelbyid_body body = ; // Action_getlabelbyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_18 result = apiInstance.instanceIdClientActionGetLabelByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabelsApi#instanceIdClientActionGetLabelByIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getlabelbyid_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

LabelsApi *apiInstance = [[LabelsApi alloc] init];

// Get label by ID
[apiInstance instanceIdClientActionGetLabelByIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_18 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.LabelsApi()
var body = ; // {{Action_getlabelbyid_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetLabelByIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetLabelByIdPostExample
    {
        public void main()
        {


            var apiInstance = new LabelsApi();
            var body = new Action_getlabelbyid_body(); // Action_getlabelbyid_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get label by ID
                inline_response_200_18 result = apiInstance.instanceIdClientActionGetLabelByIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabelsApi.instanceIdClientActionGetLabelByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLabelsApi();
$body = ; // Action_getlabelbyid_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetLabelByIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LabelsApi->instanceIdClientActionGetLabelByIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LabelsApi;


my $api_instance = WWW::SwaggerClient::LabelsApi->new();
my $body = WWW::SwaggerClient::Object::Action_getlabelbyid_body->new(); # Action_getlabelbyid_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetLabelByIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabelsApi->instanceIdClientActionGetLabelByIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LabelsApi()
body =  # Action_getlabelbyid_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get label by ID
    api_response = api_instance.instance_id_client_action_get_label_by_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabelsApi->instanceIdClientActionGetLabelByIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Label retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionGetLabelsPost

Get all labels

Get all WhatsApp labels


/{instanceId}/client/action/get-labels

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-labels"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LabelsApi;

import java.io.File;
import java.util.*;

public class LabelsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        LabelsApi apiInstance = new LabelsApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_17 result = apiInstance.instanceIdClientActionGetLabelsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabelsApi#instanceIdClientActionGetLabelsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LabelsApi;

public class LabelsApiExample {

    public static void main(String[] args) {
        LabelsApi apiInstance = new LabelsApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_17 result = apiInstance.instanceIdClientActionGetLabelsPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LabelsApi#instanceIdClientActionGetLabelsPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

LabelsApi *apiInstance = [[LabelsApi alloc] init];

// Get all labels
[apiInstance instanceIdClientActionGetLabelsPostWith:instanceId
              completionHandler: ^(inline_response_200_17 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.LabelsApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetLabelsPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetLabelsPostExample
    {
        public void main()
        {


            var apiInstance = new LabelsApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get all labels
                inline_response_200_17 result = apiInstance.instanceIdClientActionGetLabelsPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LabelsApi.instanceIdClientActionGetLabelsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiLabelsApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetLabelsPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LabelsApi->instanceIdClientActionGetLabelsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LabelsApi;


my $api_instance = WWW::SwaggerClient::LabelsApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetLabelsPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LabelsApi->instanceIdClientActionGetLabelsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.LabelsApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get all labels
    api_response = api_instance.instance_id_client_action_get_labels_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LabelsApi->instanceIdClientActionGetLabelsPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Labels retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


Message

apiMessageInstanceIdClientActionGetMessageByIdPost

Get message by ID

Retrieve a message by its ID


/api/message/{instanceId}/client/action/get-message-by-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/message/{instanceId}/client/action/get-message-by-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_getmessagebyid_body body = ; // Action_getmessagebyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_19 result = apiInstance.apiMessageInstanceIdClientActionGetMessageByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionGetMessageByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_getmessagebyid_body body = ; // Action_getmessagebyid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_19 result = apiInstance.apiMessageInstanceIdClientActionGetMessageByIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionGetMessageByIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getmessagebyid_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Get message by ID
[apiInstance apiMessageInstanceIdClientActionGetMessageByIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_19 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_getmessagebyid_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiMessageInstanceIdClientActionGetMessageByIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiMessageInstanceIdClientActionGetMessageByIdPostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_getmessagebyid_body(); // Action_getmessagebyid_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get message by ID
                inline_response_200_19 result = apiInstance.apiMessageInstanceIdClientActionGetMessageByIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.apiMessageInstanceIdClientActionGetMessageByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_getmessagebyid_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiMessageInstanceIdClientActionGetMessageByIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->apiMessageInstanceIdClientActionGetMessageByIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_getmessagebyid_body->new(); # Action_getmessagebyid_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiMessageInstanceIdClientActionGetMessageByIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->apiMessageInstanceIdClientActionGetMessageByIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_getmessagebyid_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get message by ID
    api_response = api_instance.api_message_instance_id_client_action_get_message_by_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->apiMessageInstanceIdClientActionGetMessageByIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Message retrieved successfully

Status: 400 - Invalid request

Status: 404 - Message or instance not found


apiMessageInstanceIdClientActionReactToMessagePost

React to message

Add a reaction to a message


/api/message/{instanceId}/client/action/react-to-message

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/message/{instanceId}/client/action/react-to-message"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_reacttomessage_body_1 body = ; // Action_reacttomessage_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionReactToMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionReactToMessagePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_reacttomessage_body_1 body = ; // Action_reacttomessage_body_1 | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionReactToMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionReactToMessagePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_reacttomessage_body_1 *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// React to message
[apiInstance apiMessageInstanceIdClientActionReactToMessagePostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_reacttomessage_body_1}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiMessageInstanceIdClientActionReactToMessagePost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiMessageInstanceIdClientActionReactToMessagePostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_reacttomessage_body_1(); // Action_reacttomessage_body_1 | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // React to message
                inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionReactToMessagePost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.apiMessageInstanceIdClientActionReactToMessagePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_reacttomessage_body_1 | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiMessageInstanceIdClientActionReactToMessagePost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->apiMessageInstanceIdClientActionReactToMessagePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_reacttomessage_body_1->new(); # Action_reacttomessage_body_1 | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiMessageInstanceIdClientActionReactToMessagePost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->apiMessageInstanceIdClientActionReactToMessagePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_reacttomessage_body_1 | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # React to message
    api_response = api_instance.api_message_instance_id_client_action_react_to_message_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->apiMessageInstanceIdClientActionReactToMessagePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Reaction added successfully

Status: 400 - Invalid request

Status: 404 - Message or instance not found


apiMessageInstanceIdClientActionSendLocationPost

Send location

Send a location message


/api/message/{instanceId}/client/action/send-location

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/message/{instanceId}/client/action/send-location"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_sendlocation_body body = ; // Action_sendlocation_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendLocationPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendLocationPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_sendlocation_body body = ; // Action_sendlocation_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendLocationPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendLocationPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_sendlocation_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Send location
[apiInstance apiMessageInstanceIdClientActionSendLocationPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_sendlocation_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiMessageInstanceIdClientActionSendLocationPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiMessageInstanceIdClientActionSendLocationPostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_sendlocation_body(); // Action_sendlocation_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Send location
                inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendLocationPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.apiMessageInstanceIdClientActionSendLocationPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_sendlocation_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiMessageInstanceIdClientActionSendLocationPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->apiMessageInstanceIdClientActionSendLocationPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_sendlocation_body->new(); # Action_sendlocation_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiMessageInstanceIdClientActionSendLocationPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->apiMessageInstanceIdClientActionSendLocationPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_sendlocation_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Send location
    api_response = api_instance.api_message_instance_id_client_action_send_location_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->apiMessageInstanceIdClientActionSendLocationPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Location sent successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiMessageInstanceIdClientActionSendMediaPost

Send media message

Send a media message (image, video, document, etc.)


/api/message/{instanceId}/client/action/send-media

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/message/{instanceId}/client/action/send-media"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_sendmedia_body body = ; // Action_sendmedia_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendMediaPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendMediaPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_sendmedia_body body = ; // Action_sendmedia_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendMediaPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendMediaPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_sendmedia_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Send media message
[apiInstance apiMessageInstanceIdClientActionSendMediaPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_sendmedia_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiMessageInstanceIdClientActionSendMediaPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiMessageInstanceIdClientActionSendMediaPostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_sendmedia_body(); // Action_sendmedia_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Send media message
                inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendMediaPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.apiMessageInstanceIdClientActionSendMediaPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_sendmedia_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiMessageInstanceIdClientActionSendMediaPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->apiMessageInstanceIdClientActionSendMediaPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_sendmedia_body->new(); # Action_sendmedia_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiMessageInstanceIdClientActionSendMediaPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->apiMessageInstanceIdClientActionSendMediaPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_sendmedia_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Send media message
    api_response = api_instance.api_message_instance_id_client_action_send_media_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->apiMessageInstanceIdClientActionSendMediaPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Media sent successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiMessageInstanceIdClientActionSendMessagePost

Send text message

Send a text message to a chat


/api/message/{instanceId}/client/action/send-message

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/message/{instanceId}/client/action/send-message"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_sendmessage_body body = ; // Action_sendmessage_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendMessagePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_sendmessage_body body = ; // Action_sendmessage_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendMessagePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_sendmessage_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Send text message
[apiInstance apiMessageInstanceIdClientActionSendMessagePostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_sendmessage_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiMessageInstanceIdClientActionSendMessagePost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiMessageInstanceIdClientActionSendMessagePostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_sendmessage_body(); // Action_sendmessage_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Send text message
                inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendMessagePost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.apiMessageInstanceIdClientActionSendMessagePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_sendmessage_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiMessageInstanceIdClientActionSendMessagePost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->apiMessageInstanceIdClientActionSendMessagePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_sendmessage_body->new(); # Action_sendmessage_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiMessageInstanceIdClientActionSendMessagePost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->apiMessageInstanceIdClientActionSendMessagePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_sendmessage_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Send text message
    api_response = api_instance.api_message_instance_id_client_action_send_message_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->apiMessageInstanceIdClientActionSendMessagePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Message sent successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiMessageInstanceIdClientActionSendVcardPost

Send vCard

Send a vCard contact message


/api/message/{instanceId}/client/action/send-vcard

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/message/{instanceId}/client/action/send-vcard"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_sendvcard_body body = ; // Action_sendvcard_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendVcardPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendVcardPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_sendvcard_body body = ; // Action_sendvcard_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendVcardPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionSendVcardPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_sendvcard_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Send vCard
[apiInstance apiMessageInstanceIdClientActionSendVcardPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_sendvcard_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiMessageInstanceIdClientActionSendVcardPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiMessageInstanceIdClientActionSendVcardPostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_sendvcard_body(); // Action_sendvcard_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Send vCard
                inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionSendVcardPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.apiMessageInstanceIdClientActionSendVcardPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_sendvcard_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiMessageInstanceIdClientActionSendVcardPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->apiMessageInstanceIdClientActionSendVcardPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_sendvcard_body->new(); # Action_sendvcard_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiMessageInstanceIdClientActionSendVcardPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->apiMessageInstanceIdClientActionSendVcardPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_sendvcard_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Send vCard
    api_response = api_instance.api_message_instance_id_client_action_send_vcard_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->apiMessageInstanceIdClientActionSendVcardPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - vCard sent successfully

Status: 400 - Invalid request

Status: 404 - Instance not found


apiMessageInstanceIdClientActionStarMessagePost

Star message

Star or unstar a message


/api/message/{instanceId}/client/action/star-message

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/api/message/{instanceId}/client/action/star-message"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_starmessage_body body = ; // Action_starmessage_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionStarMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionStarMessagePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_starmessage_body body = ; // Action_starmessage_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionStarMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#apiMessageInstanceIdClientActionStarMessagePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_starmessage_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Star message
[apiInstance apiMessageInstanceIdClientActionStarMessagePostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_starmessage_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiMessageInstanceIdClientActionStarMessagePost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiMessageInstanceIdClientActionStarMessagePostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_starmessage_body(); // Action_starmessage_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Star message
                inline_response_200_3 result = apiInstance.apiMessageInstanceIdClientActionStarMessagePost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.apiMessageInstanceIdClientActionStarMessagePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_starmessage_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->apiMessageInstanceIdClientActionStarMessagePost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->apiMessageInstanceIdClientActionStarMessagePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_starmessage_body->new(); # Action_starmessage_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->apiMessageInstanceIdClientActionStarMessagePost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->apiMessageInstanceIdClientActionStarMessagePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_starmessage_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Star message
    api_response = api_instance.api_message_instance_id_client_action_star_message_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->apiMessageInstanceIdClientActionStarMessagePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Message starred/unstarred successfully

Status: 400 - Invalid request

Status: 404 - Message or instance not found


instanceIdClientActionReactToMessagePost

React to a message

Add a reaction to a WhatsApp message


/{instanceId}/client/action/react-to-message

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/react-to-message"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_reacttomessage_body body = ; // Action_reacttomessage_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionReactToMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#instanceIdClientActionReactToMessagePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_reacttomessage_body body = ; // Action_reacttomessage_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionReactToMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#instanceIdClientActionReactToMessagePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_reacttomessage_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// React to a message
[apiInstance instanceIdClientActionReactToMessagePostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_reacttomessage_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionReactToMessagePost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionReactToMessagePostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_reacttomessage_body(); // Action_reacttomessage_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // React to a message
                inline_response_200_3 result = apiInstance.instanceIdClientActionReactToMessagePost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.instanceIdClientActionReactToMessagePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_reacttomessage_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionReactToMessagePost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->instanceIdClientActionReactToMessagePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_reacttomessage_body->new(); # Action_reacttomessage_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionReactToMessagePost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->instanceIdClientActionReactToMessagePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_reacttomessage_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # React to a message
    api_response = api_instance.instance_id_client_action_react_to_message_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->instanceIdClientActionReactToMessagePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Reaction added successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionSearchMessagesPost

Search messages

Search for messages in WhatsApp chats


/{instanceId}/client/action/search-messages

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/search-messages"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Action_searchmessages_body body = ; // Action_searchmessages_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_4 result = apiInstance.instanceIdClientActionSearchMessagesPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#instanceIdClientActionSearchMessagesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Action_searchmessages_body body = ; // Action_searchmessages_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_4 result = apiInstance.instanceIdClientActionSearchMessagesPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#instanceIdClientActionSearchMessagesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_searchmessages_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Search messages
[apiInstance instanceIdClientActionSearchMessagesPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Action_searchmessages_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionSearchMessagesPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionSearchMessagesPostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Action_searchmessages_body(); // Action_searchmessages_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Search messages
                inline_response_200_4 result = apiInstance.instanceIdClientActionSearchMessagesPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.instanceIdClientActionSearchMessagesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Action_searchmessages_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionSearchMessagesPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->instanceIdClientActionSearchMessagesPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Action_searchmessages_body->new(); # Action_searchmessages_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionSearchMessagesPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->instanceIdClientActionSearchMessagesPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Action_searchmessages_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Search messages
    api_response = api_instance.instance_id_client_action_search_messages_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->instanceIdClientActionSearchMessagesPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Search results retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionSendMessagePost

Send a text message

Send a text message to a WhatsApp chat


/{instanceId}/client/action/send-message

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/send-message"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessageApi;

import java.io.File;
import java.util.*;

public class MessageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        MessageApi apiInstance = new MessageApi();
        Message body = ; // Message | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionSendMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#instanceIdClientActionSendMessagePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessageApi;

public class MessageApiExample {

    public static void main(String[] args) {
        MessageApi apiInstance = new MessageApi();
        Message body = ; // Message | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_3 result = apiInstance.instanceIdClientActionSendMessagePost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessageApi#instanceIdClientActionSendMessagePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Message *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

MessageApi *apiInstance = [[MessageApi alloc] init];

// Send a text message
[apiInstance instanceIdClientActionSendMessagePostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.MessageApi()
var body = ; // {{Message}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionSendMessagePost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionSendMessagePostExample
    {
        public void main()
        {


            var apiInstance = new MessageApi();
            var body = new Message(); // Message | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Send a text message
                inline_response_200_3 result = apiInstance.instanceIdClientActionSendMessagePost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessageApi.instanceIdClientActionSendMessagePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiMessageApi();
$body = ; // Message | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionSendMessagePost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessageApi->instanceIdClientActionSendMessagePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessageApi;


my $api_instance = WWW::SwaggerClient::MessageApi->new();
my $body = WWW::SwaggerClient::Object::Message->new(); # Message | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionSendMessagePost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessageApi->instanceIdClientActionSendMessagePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.MessageApi()
body =  # Message | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Send a text message
    api_response = api_instance.instance_id_client_action_send_message_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessageApi->instanceIdClientActionSendMessagePost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Message sent successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


Number

instanceIdClientActionGetFormattedNumberPost

Get formatted number

Get a formatted phone number


/{instanceId}/client/action/get-formatted-number

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-formatted-number"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NumberApi;

import java.io.File;
import java.util.*;

public class NumberApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        NumberApi apiInstance = new NumberApi();
        Action_getformattednumber_body body = ; // Action_getformattednumber_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_12 result = apiInstance.instanceIdClientActionGetFormattedNumberPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NumberApi#instanceIdClientActionGetFormattedNumberPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NumberApi;

public class NumberApiExample {

    public static void main(String[] args) {
        NumberApi apiInstance = new NumberApi();
        Action_getformattednumber_body body = ; // Action_getformattednumber_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_12 result = apiInstance.instanceIdClientActionGetFormattedNumberPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NumberApi#instanceIdClientActionGetFormattedNumberPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getformattednumber_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

NumberApi *apiInstance = [[NumberApi alloc] init];

// Get formatted number
[apiInstance instanceIdClientActionGetFormattedNumberPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_12 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.NumberApi()
var body = ; // {{Action_getformattednumber_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetFormattedNumberPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetFormattedNumberPostExample
    {
        public void main()
        {


            var apiInstance = new NumberApi();
            var body = new Action_getformattednumber_body(); // Action_getformattednumber_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get formatted number
                inline_response_200_12 result = apiInstance.instanceIdClientActionGetFormattedNumberPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NumberApi.instanceIdClientActionGetFormattedNumberPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiNumberApi();
$body = ; // Action_getformattednumber_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetFormattedNumberPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NumberApi->instanceIdClientActionGetFormattedNumberPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NumberApi;


my $api_instance = WWW::SwaggerClient::NumberApi->new();
my $body = WWW::SwaggerClient::Object::Action_getformattednumber_body->new(); # Action_getformattednumber_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetFormattedNumberPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NumberApi->instanceIdClientActionGetFormattedNumberPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.NumberApi()
body =  # Action_getformattednumber_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get formatted number
    api_response = api_instance.instance_id_client_action_get_formatted_number_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NumberApi->instanceIdClientActionGetFormattedNumberPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Number formatted successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


instanceIdClientActionGetNumberIdPost

Get number ID

Get chat ID from a phone number


/{instanceId}/client/action/get-number-id

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-number-id"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NumberApi;

import java.io.File;
import java.util.*;

public class NumberApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        NumberApi apiInstance = new NumberApi();
        Action_getnumberid_body body = ; // Action_getnumberid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_16 result = apiInstance.instanceIdClientActionGetNumberIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NumberApi#instanceIdClientActionGetNumberIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NumberApi;

public class NumberApiExample {

    public static void main(String[] args) {
        NumberApi apiInstance = new NumberApi();
        Action_getnumberid_body body = ; // Action_getnumberid_body | 
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_16 result = apiInstance.instanceIdClientActionGetNumberIdPost(body, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NumberApi#instanceIdClientActionGetNumberIdPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
Action_getnumberid_body *body = ; // 
String *instanceId = instanceId_example; // ID of the WhatsApp instance

NumberApi *apiInstance = [[NumberApi alloc] init];

// Get number ID
[apiInstance instanceIdClientActionGetNumberIdPostWith:body
    instanceId:instanceId
              completionHandler: ^(inline_response_200_16 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.NumberApi()
var body = ; // {{Action_getnumberid_body}} 
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetNumberIdPost(bodyinstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetNumberIdPostExample
    {
        public void main()
        {


            var apiInstance = new NumberApi();
            var body = new Action_getnumberid_body(); // Action_getnumberid_body | 
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get number ID
                inline_response_200_16 result = apiInstance.instanceIdClientActionGetNumberIdPost(body, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NumberApi.instanceIdClientActionGetNumberIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiNumberApi();
$body = ; // Action_getnumberid_body | 
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetNumberIdPost($body, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NumberApi->instanceIdClientActionGetNumberIdPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NumberApi;


my $api_instance = WWW::SwaggerClient::NumberApi->new();
my $body = WWW::SwaggerClient::Object::Action_getnumberid_body->new(); # Action_getnumberid_body | 
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetNumberIdPost(body => $body, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NumberApi->instanceIdClientActionGetNumberIdPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.NumberApi()
body =  # Action_getnumberid_body | 
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get number ID
    api_response = api_instance.instance_id_client_action_get_number_id_post(body, instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NumberApi->instanceIdClientActionGetNumberIdPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Number ID retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized


Root

rootGet

Root endpoint

Basic endpoint returning API information


/

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RootApi;

import java.io.File;
import java.util.*;

public class RootApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        RootApi apiInstance = new RootApi();
        try {
            inline_response_200 result = apiInstance.rootGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RootApi#rootGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RootApi;

public class RootApiExample {

    public static void main(String[] args) {
        RootApi apiInstance = new RootApi();
        try {
            inline_response_200 result = apiInstance.rootGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RootApi#rootGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

RootApi *apiInstance = [[RootApi alloc] init];

// Root endpoint
[apiInstance rootGetWithCompletionHandler: 
              ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.RootApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.rootGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class rootGetExample
    {
        public void main()
        {


            var apiInstance = new RootApi();

            try
            {
                // Root endpoint
                inline_response_200 result = apiInstance.rootGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RootApi.rootGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiRootApi();

try {
    $result = $api_instance->rootGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RootApi->rootGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RootApi;


my $api_instance = WWW::SwaggerClient::RootApi->new();

eval { 
    my $result = $api_instance->rootGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RootApi->rootGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.RootApi()

try: 
    # Root endpoint
    api_response = api_instance.root_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RootApi->rootGet: %s\n" % e)

Parameters

Responses

Status: 200 - Success


Stories

instanceIdClientActionGetStoriesPost

Get all stories

Get all available WhatsApp stories


/{instanceId}/client/action/get-stories

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"http://api.chatwhatsapp.in/{instanceId}/client/action/get-stories"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StoriesApi;

import java.io.File;
import java.util.*;

public class StoriesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        StoriesApi apiInstance = new StoriesApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_15 result = apiInstance.instanceIdClientActionGetStoriesPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StoriesApi#instanceIdClientActionGetStoriesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StoriesApi;

public class StoriesApiExample {

    public static void main(String[] args) {
        StoriesApi apiInstance = new StoriesApi();
        String instanceId = instanceId_example; // String | ID of the WhatsApp instance
        try {
            inline_response_200_15 result = apiInstance.instanceIdClientActionGetStoriesPost(instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StoriesApi#instanceIdClientActionGetStoriesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
String *instanceId = instanceId_example; // ID of the WhatsApp instance

StoriesApi *apiInstance = [[StoriesApi alloc] init];

// Get all stories
[apiInstance instanceIdClientActionGetStoriesPostWith:instanceId
              completionHandler: ^(inline_response_200_15 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WhatsAppApi = require('whats_app_api');
var defaultClient = WhatsAppApi.ApiClient.instance;


var api = new WhatsAppApi.StoriesApi()
var instanceId = instanceId_example; // {{String}} ID of the WhatsApp instance

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.instanceIdClientActionGetStoriesPost(instanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class instanceIdClientActionGetStoriesPostExample
    {
        public void main()
        {


            var apiInstance = new StoriesApi();
            var instanceId = instanceId_example;  // String | ID of the WhatsApp instance

            try
            {
                // Get all stories
                inline_response_200_15 result = apiInstance.instanceIdClientActionGetStoriesPost(instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StoriesApi.instanceIdClientActionGetStoriesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiStoriesApi();
$instanceId = instanceId_example; // String | ID of the WhatsApp instance

try {
    $result = $api_instance->instanceIdClientActionGetStoriesPost($instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StoriesApi->instanceIdClientActionGetStoriesPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StoriesApi;


my $api_instance = WWW::SwaggerClient::StoriesApi->new();
my $instanceId = instanceId_example; # String | ID of the WhatsApp instance

eval { 
    my $result = $api_instance->instanceIdClientActionGetStoriesPost(instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StoriesApi->instanceIdClientActionGetStoriesPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.StoriesApi()
instanceId = instanceId_example # String | ID of the WhatsApp instance

try: 
    # Get all stories
    api_response = api_instance.instance_id_client_action_get_stories_post(instanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StoriesApi->instanceIdClientActionGetStoriesPost: %s\n" % e)

Parameters

Path parameters
Name Description
instanceId*
String
ID of the WhatsApp instance
Required

Responses

Status: 200 - Stories retrieved successfully

Status: 400 - Bad request

Status: 401 - Unauthorized