Skip to main content

List Contacts

Welcome to the Notify Africa SMS RESTful API documentation!

This comprehensive guide will walk you through the process of listing contacts in your Notify Africa account.

We present you with a step-by-step guide to help you list contacts and manage your contact list efficiently.

If you have reached this page, we assume you have an active Notify Africa account and are ready to list your contacts.

try {
// Send a POST request to the API endpoint for creating contacts
const baseUrl = 'https://example.com/v2'; // contact us for the base URL
const token = 'YOUR_API_TOKEN';
const endPoint = '/contacts/list/records';
const records = 10;
const page = 1;
const url = `${baseUrl}${endPoint}`;

const response = await fetch(`${url}/${records}?page=${page}`,{
method:'GET',
headers: { 'Authorization': `Bearer ${token}`},
})

// Parse the response body as JSON
const json = await response.json();
console.log('Response:', json);
} catch (error) {
console.error('Error:', error);
}