TheNews API Documentation

Welcome to TheNews API documentation. TheNews is a powerful email marketing platform that allows you to manage subscribers, create and send newsletters, and track analytics.

Overview

The API is organized around REST. It uses resource-oriented URLs, JSON-encoded request/response bodies, and standard HTTP verbs.

📌 Important:

Before adding subscribers using POST /api/subscribe, you must first create a newsletter category from the TheNews Dashboard. This category determines what type of newsletter the user is subscribing to.

Base URL

API Base URL
https://thenews.africa/api/subscribe

Available Endpoints

EndpointDescription
POST /api/subscribeAdd a new subscriber to your list
GET /api/subscribeList all subscribers

Coming Soon

We're working on expanding our API with exciting new features and endpoints!

Analytics API

Track performance metrics for your newsletters

Webhooks

Real-time event notifications

Templates API

Create and manage newsletter templates

API Versioning

The TheNews API is versioned to ensure backward compatibility. The current version is v0.5. When we make breaking changes, we'll release a new version and provide migration guides.