Logo
Africa's Talking APIs API Documentation

Fetch Subscriptions

GET {{BASE_URL}}/version1/subscription?username={{USERNAME}}&shortCode=12112&keyword=Awesome

Incrementally fetch your premium sms subscriptions.

 

Body PARAM

Key Datatype Required Description 
username
string
shortCode
number
keyword
string
lastReceivedId
number



HEADERS

Key Datatype Required Description 
Accept
string




RESPONSES

status OK

{ "responses": [ { "id": 100, "phoneNumber": "+254795790363", "date": "2021-05-25T08:07:53.434Z" }, { "id": 200, "phoneNumber": "+254795790363", "date": "2021-05-25T08:07:53.434Z" } ] }

Curl
curl -X GET 'https://content.africastalking.com/version1/subscription?username=sandbox&shortCode=12112&keyword=Awesome?username=sandbox&shortCode=12112&keyword=Awesome&lastReceivedId=0' -H 'Accept: application/json'

ENDPOINTS