Contacts API
Overview

Contacts API

The SMSLeopard Contacts API allows you to manage contacts and groups for your SMS (opens in a new tab) and WhatsApp (opens in a new tab) campaigns. You can create, retrieve, and delete contacts, as well as organize them into groups.

Base URL

https://api.smsleopard.com/v1/

Authentication

This API uses Basic Authentication with your API credentials. Click to Generate Credentials (API Keys and Secrets) (opens in a new tab)

  • Username: {api_key}
  • Password: {api_secret}

Each request must include the Authorization header in the following format:

Authorization: Basic <base64(api_key:api_secret)>
# Set your credentials
API_KEY="your_api_key"
API_SECRET="your_api_secret"
 
# Example: Fetch groups
curl -X GET "https://api.smsleopard.com/v1/groups/fetch" \
  -u "$API_KEY:$API_SECRET"

Available Endpoints