Bulk SMS Check & Telephone Number Change API Functions.
One or more telephone, assigned to you for specified number of days, during which you can check sms more than one time and change telephone multiple number of times. Additionally you may be assigned a dedicated machine. Custom pricing, talk to our representative prior proceeding.
All dates are in Eastern Standard Time (EST or EDT) ISO 8601 formatted, e.g 2024-11-21 09:39:59
Get all of assigned telephone numbers with their respective telephone_id to interact with couple of API Functions.
Parameter(s) | Description |
---|---|
none |
Parameter(s) | Description |
---|---|
success | True or Flase |
message | null or error message |
data |
|
{ 'success' : True 'message' : None, 'data' : [ { 'telephone_id' : '23354', 'telephone' : '2123451356', 'added_at' : '2018-02-11', 'expired_at' : '2018-03-10' } ] }
This API Call will create a SMS Check PENDING Request for the telephone ID you've provided.
Parameter(s) | Description |
---|---|
Telephone ID | An integer ID that you've got from bulk_sms/telephones API Call |
Parameter(s) | Description |
---|---|
success | True or Flase |
message | null or error message |
data |
|
{ 'success' : True 'message' : None, 'data' : [ { 'request_id' : '15682' } ] }
If you try to pass a Telephone ID which do not exist in data against your call to bulk_sms/telephones following error message will appear
{ 'success' : False, 'message' : "Unable to find Telephone ID", 'data' : None }
Once after creating bulk_sms/request, you will be momentarily (a fair delay among your each status call will be appreciated) api calling this method to get latest status of your SMS Check Request. Keep an eye over Status.
Parameter(s) | Description |
---|---|
Request ID | The integer Request ID that you've recieved via bulk_sms/request API Call |
Parameter(s) | Description |
---|---|
success | Boolean True or Flase |
message | null or error message |
data |
|
{ 'message' : None, 'success' : True, 'data' : { 'request_id' : '15682', 'agent_name' : None, 'telephone' : '2123451356', 'smses' : 'Test SMS 1|Test SMS 2', 'status' : 'PENDING', 'updated_at' : '2018-04-25 20:14:16', 'queued_at' : '2018-04-25 20:14:16', 'acquired_at' : None, 'started_at' : None, 'ended_at' : None, 'canceled_at' : None } }
If you try to pass a Request ID which do not exist in data against your call to bulk_sms/request following error message will appear
{ 'success' : False, 'message' : "Unable to find request", 'data' : None }
SMS Check Request can be canceled, if and only if, its status is PENDING
Parameter(s) | Description |
---|---|
Request ID | The integer Request ID that you've recieved via bulk_sms/request API Call |
Parameter(s) | Description |
---|---|
success | Boolean True or Flase |
message | null or error message |
data |
|
When particular request is successfully canceled, following will be returned
{ 'message' : None, 'success' : True, 'data' : { 'request_id' : '15682' } }
If you try to cancel an already canceled request, following error message will be displayed
{ 'success' : False, 'message' : "Perhaps time to cancel request has elapsed", 'data' : None }
If you try to cancel a non-existing request, following error message will be displayed
{ 'success' : False, 'message' : "Unable to find request", 'data' : None }
Get SMS received at telephone (if any)
Parameter(s) | Description |
---|---|
Telephone ID | An integer ID that you've got from bulk_sms/telephones API Call |
Parameter(s) | Description |
---|---|
success | Boolean True or Flase |
message | null or error message |
data |
|
If here is any SMS(es) received over particular telephone id, they will be returned as follows
{ 'success' : True, 'message' : None, 'data' : [ { 'request_id' : '11184', 'telephone_id' : '23354', 'smses' : 'Test SMS 1', 'telephone' : '2123451356', 'updated_at' : '2018-02-26 13:21:19' }, { 'request_id' : '11183', 'telephone_id' : '23354', 'smses' : 'Test SMS 4|Test SMS 5', 'telephone' : '9171234567', 'updated_at' : '2018-02-26 12:57:42' } ] }Note:
Auto Check is a feature, that allow particular telephone to be kept checking for SMS multiple times, alternatively it can be used to disable this feature for a particular telephone ID as well. Enabling is useful when you do not want to keep calling bulk_sms/request multiple times to get SMS. This feature is by-default disable, however using this API Call you can enable it for particular Telephone ID
IMPORTANT:
a) Once after enabling auto-check, you should try to create atleast one SMS Check Request bulk_sms/request for same Telephone ID (for which you've enabled auto-check), if you dont do that, it wont auto-check
b) All Auto-Check will be disabled by 12am everyday. Next day you will need to enable auto-check again and atleast request one bulk_sms/request manually
Parameter(s) | Description |
---|---|
Telephone ID | An integer ID that you've got from bulk_sms/telephones API Call |
Action | enable or disable |
Parameter(s) | Description |
---|---|
success | Boolean True or Flase |
message | null or error message |
data | None |
When particular autocheck for Telephone ID is successfully enabled or disabled, following JSON output will be returned.
{ 'success' : True, 'message' : None, 'data' : None }
The errorneous output can be as follows;
{ 'success' : False, 'message' : 'Unable to find Telephone ID', 'data' : None }
IMPORTANT: Once a telephone number is changed, there is no way to get back the old telephone number
When you want to change telephone number associated with particular telephone id.
23354 is Telephone ID, while 95129 is zip code for San Jose, CA.
Parameter(s) | Description |
---|---|
Telephone ID | An integer ID that you've got from bulk_sms/telephones API Call |
Zip | 5 Digit Zip Code. Number availability depends upon if zip code covers larger area. For zip codes that do not have much population, the number change request will be failed |
Parameter(s) | Description |
---|---|
success | True or Flase |
message | null or error message |
data |
|
{ 'success' : True 'message' : None, 'data' : [ { 'request_id' : '11111' } ] }
Get all Number Change (NC) requests made within last 48 hours
Parameter(s) | Description |
---|---|
None |
Parameter(s) | Description |
---|---|
success | Boolean True or Flase |
message | null or error message |
data |
|
{ 'success' : True 'message' : None, 'data' : [ { 'request_id' : '44444', 'last_telephone' : '2121231234', 'telephone' : '9171231234', 'updated_at' : '2018-04-25 20:14:16', 'submitted_at' : '2018-04-25 20:10:16', 'canceled_at' : None } ] }
Once after creating nc/request, you will be momentarily (a fair delay among your each status call will be appreciated) api calling this method to get latest status of your Number Change Request. Keep an eye over Status.
Parameter(s) | Description |
---|---|
Request ID | The integer Request ID that you've recieved via nc/request API Call |
Parameter(s) | Description |
---|---|
success | Boolean True or Flase |
message | null or error message |
data |
|
{ 'message' : None, 'success' : True, 'data' : { 'request_id' : '15682', 'agent_name' : None, 'telephone' : '2123451356', 'last_telephone' : 'Test SMS 1|Test SMS 2', 'status' : 'PENDING', 'updated_at' : '2018-04-25 20:14:16', 'submitted_at' : '2018-04-25 20:14:16', 'acquired_at' : None, 'processed_at' : None, 'completed_at' : None, 'canceled_at' : None } }
If you try to pass a Request ID which do not exist in data against your call to nc/request following error message will appear
{ 'success' : False, 'message' : "Unable to find request", 'data' : None }
Number Change Request can be canceled, if and only if, its status is PENDING
Parameter(s) | Description |
---|---|
Request ID | The integer Request ID that you've recieved via nc/request API Call |
Parameter(s) | Description |
---|---|
success | Boolean True or Flase |
message | null or error message |
data |
|
When particular request is successfully canceled, following will be returned
{ 'message' : None, 'success' : True, 'data' : { 'request_id' : '15682' } }
If you try to cancel an already canceled request, following error message will be displayed
{ 'success' : False, 'message' : "Perhaps time to cancel request has elapsed", 'data' : None }
If you try to cancel a non-existing request, following error message will be displayed
{ 'success' : False, 'message' : "Unable to find request", 'data' : None }