Home Features API Hub Number API Calls

API Directory — Full Call Reference

Every available API call, its endpoint, required variables, and usage. All calls use POST unless noted. Obtain your account token via the Login call before using any other endpoint.

Base URL: https://newsip.pbxme.com

Authentication

Login

Endpoint: {{URL}}/api/login/

Authenticates your account and returns the token required for all subsequent API calls.

VariableDescription
usernameYour PBXme account number
passwordYour PBXme account password

Example Request:

{
  "username": "{{account_number}}",
  "password": "{{password}}"
}

⚠️ Save the returned id and account_token values — these are required by all other API calls.

Account

Get Balance

Returns the current balance on your account.

Charges History

Endpoint: {{URL}}/api/charges_history/get_charges_history_list/

Returns account charge and refill history, including DID purchases, renewals, refills, and postcharges.

VariableDescription
idAccount ID returned by Login
tokenaccount_token returned by Login
numberYour account number

Example Request:

{
  "id": "{{id}}",
  "token": "{{token}}",
  "number": "{{account_number}}"
}

CDRs Export

Endpoint: {{URL}}/api/cdrs_export

Exports Call Detail Records (CDRs) for a selected date range.

VariableDescription
idAccount ID
tokenaccount_token
from_dateStart date and time
to_dateEnd date and time

DID (Number) Management

Get Country List

Returns all available countries and their country IDs. Use the country ID when searching for available DIDs.

DID Available List

Endpoint: {{URL}}/customer/did_crud/

Returns available numbers for a selected country.

VariableDescription
actionlist
country_idCountry ID from Get Country List
idAccount ID
tokenaccount_token

DID Assign

Endpoint: {{URL}}/customer/did_management/

Purchases and assigns a DID to your account.

VariableDescription
actionassign
did_idDID ID from Available List
accountidYour account ID
idYour account ID
tokenaccount_token

DID Purchased List

Endpoint: {{URL}}/customer/did_crud/

Returns all DIDs currently assigned to your account with full details per number.

VariableDescription
actionpurchase_list

DID Release

Endpoint: {{URL}}/customer/did_management/

Releases a DID from your account.

VariableDescription
actionrelease
did_idDID ID to release

DID Forward Setting

Endpoint: {{URL}}/customer/did_management/

Updates the routing/forwarding destination for a DID. Use this call to configure where incoming calls are forwarded.

VariableDescription
call_typeForwarding type
call_type_valueDestination value for the forwarding type
alwaysAlways forward destination
user_busyForward when line is busy
user_not_registeredForward when not registered
no_answerForward on no answer

SMS Configuration

All SMS config calls use the endpoint: https://newsip.pbxme.com/api/sms

SMS Config Add

Creates an SMS forwarding configuration for an SMS-enabled number.

VariableDescription
actionadd
didSMS-enabled number
dest_smsSMS destination number
dest_emailEmail destination for SMS forwarding

SMS Config Update / Delete / Get / List

Updates, deletes, retrieves, or lists existing SMS forwarding configurations for a DID.

ActionDescription
updateUpdates an existing SMS forwarding configuration
deleteDeletes an existing SMS forwarding configuration for a DID
getReturns the SMS forwarding settings for a specific DID
listReturns all SMS forwarding configurations on the account

Quick Reference — All API Calls

CallEndpointPurpose
Login/api/login/Authenticate and get account token
Get BalanceReturn current account balance
Charges History/api/charges_history/get_charges_history_list/Retrieve transaction history
CDRs Export/api/cdrs_exportExport call records by date range
Get Country ListCountry List APIList all available countries and IDs
DID Available List/customer/did_crud/Browse available numbers by country
DID Assign/customer/did_management/Purchase and assign a number
DID Purchased List/customer/did_crud/List all numbers on your account
DID Release/customer/did_management/Release a number from your account
DID Forward Setting/customer/did_management/Configure call forwarding for a number
SMS Config Add/api/smsCreate SMS forwarding config
SMS Config Update/api/smsUpdate SMS forwarding config
SMS Config Delete/api/smsDelete SMS forwarding config
Get SMS Config/api/smsGet SMS config for a specific DID
SMS Config List/api/smsList all SMS configs on account

More API Guides

Ready to Call the API?

Get your free API key and start building against the full call reference above.

    Sales, click to chat