Lease a dedicated virtual number.




numberThe virtual number to lease. Omit this field to be given a random number. Use get-numbers to find out which numbers are currently available.NO

Example: Lease a number and have all responses sent to your server

curl \
  -u 2e24c1cbdd987221e165d543f34b84bf:secret \
  -d number=61414000013 \
  -d 'forward_url='

JSON Response

  number: "61491570156",
  next_charge: "2014-09-25",
  auto_renew: true,
  status: "active",
  price: "29",
  forward_url: ""

XML Response


PHP Examples

 include '../../APIClient2.php';

 $api = new transmitsmsAPI('API_KEY', 'API_SECRET');
 $result = $api->leaseNumber('6140000000');

 if ($result->error->code == 'SUCCESS') {
   echo 'This number is {$result->status} and valid up to {$result->next_charge}';

 } else {
   echo 'Error: {$result->error->description}';