Textlocal Logo

API Documentation

Delete User API Key

A Reseller only service Requires Advanced Reseller API This command will delete an API key for a sub account under a dual brand or white label provider account.

Resource URL

https://api.textlocal.in/delete_user_apikey/

Sample Request

<?php

$data = [
    'apiKey' => 'Your API Key',
    'user_api_key' => 'GSi8ihLplrc-KNVOYYCOMHNA1CNNE7F0R9N9NCDPU8',
];

// Send the POST request with cURL
$ch = curl_init('https://api.textlocal.in/delete_user_apikey/');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

// Process your response here
echo $response;
<?php

$data = [
    'apiKey' => 'Your API Key',
    'user_api_key' => 'GSi8ihLplrc-KNVOYYCOMHNA1CNNE7F0R9N9NCDPU8',
];

$data = http_build_query($data);

// Send the GET request with cURL
$ch = curl_init('https://api.textlocal.in/delete_user_apikey/?' . $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

// Process your response here
echo $response;

Parameters

user_api_key The API key to be deleted. Found in get_users
Login Parameters (Additional Information)
apiKey You can create these in your Messenger Control Panel (click here) for each application, and limit the usage of them by host IP Address.

Sample Response

{
  "status" : "success"
}
<?xml version="1.0" encoding="UTF-8" ?>
<response>
  <status>success</status>
</response>

Errors

Error Codes
172 No reseller account found
211 This endpoint requires the advanced reseller API.
308 Specified API key does not exist or does not belong to a reseller sub account