This API lets you fetch the status of a particular number associated with a campaign.
API Endpoint
https://api.plivo.com/v1/Account/{auth_id}/10dlc/Campaign/{campaign_id}/Number/{number}/
Arguments
No arguments need to be passed.
Returns
The number object for the number and campaign specified in the request URL. Status can take the values
FAILED,
PROCESSING,
COMPLETED.
import plivo
client = plivo.RestClient("<auth_id>", "<auth_token>")
response = client.campaign.get_number(
campaign_id="<Campaign_ID>", number="<phone_number>"
)
print(response)
{
"api_id": "56df0724-b4a1-11ec-a357-0242ac110002",
"campaign_alias": "ABC Campaign",
"campaign_id": "CUOGHIN",
"phone_numbers": [
{
"number": "12125557777",
"status": "PROCESSING"
}
],
"usecase": "STARTER"
}