Skip to content
For publishers

Publisher Webhook API

Send articles straight to Plus234Feed. Each one goes through the AI pipeline and is on the site within minutes.

Base URL: article-processor.plus234feed.com

Quick start

1. Get an API key from the Plus234Feed team. 2. Send it as Authorization: Bearer p234_…. 3. POST your article JSON to /api/webhook/article. 4. It is processed and published.

On this page

Reference

Authentication

Every request carries your API key in the Authorization header with the Bearer scheme.

http
Authorization: Bearer p234_a1b2c3d4e5f6...

Key format

  • Keys start with p234_ and are 69 characters long (prefix plus 64 hex characters).
  • Keys are hashed server-side with SHA-256. The raw key is never stored, so a lost key cannot be recovered: ask for a replacement.
  • Keep it secret. Never put it in client-side code, public repositories or URLs. If it leaks, ask us to rotate it.
Submit one article

POST/api/webhook/article

Submit a single article. It goes through cleaning, AI classification, entity extraction, summarisation and image optimisation before publishing.

Request body

FieldTypeRequiredDescription
titlestringRequiredArticle headline (at least 10 characters)
contentstringRequiredFull article body (at least 50 characters)
urlstringRequiredCanonical URL of the original article (http or https)
categorystringRequiredArticle category (see the list below)
published_atstringRequiredPublication date in ISO 8601
image_urlstringOptionalURL of the featured image
authorstringOptionalAuthor name
tagsstring[]OptionalRelevant tags
excerptstringOptionalShort description or summary

Example request

bash
curl -X POST https://article-processor.plus234feed.com/api/webhook/article \
  -H "Authorization: Bearer p234_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Federal Government Announces New Economic Policy Framework",
    "content": "The Federal Government of Nigeria today unveiled a comprehensive...",
    "url": "https://example.com/articles/new-economic-policy",
    "category": "politics",
    "published_at": "2026-02-10T08:00:00Z",
    "image_url": "https://example.com/images/economic-policy.jpg",
    "author": "John Doe",
    "tags": ["economy", "policy", "FG"]
  }'

Success response

json
{
  "success": true,
  "message": "Article received and processed",
  "data": {
    "tracking_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "title": "Federal Government Announces New Economic Policy Framework",
    "category": "politics",
    "ai_summary": "The Federal Government has introduced a new economic...",
    "processing_time_ms": 3420,
    "source": "Example News"
  }
}
Submit a batch

POST/api/webhook/articles/batch

Up to ten articles in one request. They are queued and processed asynchronously; you get a tracking ID for each at once.

Request body

json
{
  "articles": [
    {
      "title": "Article One Title Here",
      "content": "Full content of article one...",
      "url": "https://example.com/article-one",
      "category": "sports",
      "published_at": "2026-02-10T08:00:00Z"
    },
    {
      "title": "Article Two Title Here",
      "content": "Full content of article two...",
      "url": "https://example.com/article-two",
      "category": "business",
      "published_at": "2026-02-10T09:00:00Z"
    }
  ]
}

Success response

json
{
  "success": true,
  "message": "Batch of 2 articles accepted for processing",
  "data": {
    "accepted": 2,
    "tracking_ids": [
      "a1b2c3d4-e5f6-7890-abcd-000000000001",
      "a1b2c3d4-e5f6-7890-abcd-000000000002"
    ]
  }
}
  • At most ten articles per batch.
  • Each article is validated on its own. Invalid ones are skipped and reported in the response.
  • Processing is asynchronous. Use the status endpoint to check progress.
  • Each article counts towards your hourly rate limit.
Check status

GET/api/webhook/status

Your publisher account: rate limit, total submissions and allowed categories.

bash
curl https://article-processor.plus234feed.com/api/webhook/status \
  -H "Authorization: Bearer p234_your_api_key_here"
json
{
  "success": true,
  "publisher": {
    "name": "Example News",
    "source_name": "Example News",
    "is_active": true,
    "allowed_categories": ["*"],
    "rate_limit_per_hour": 50,
    "total_articles_submitted": 142,
    "last_submission_at": "2026-02-10T08:30:00Z"
  }
}
Categories

Send one of these. A category that does not match exactly is mapped through its aliases; anything unrecognised becomes general. Your account may be limited to certain categories by your publisher agreement.

CategoryAliases
politicsgovt, government
businessbiz, finance
technologytech, science
entertainmentshowbiz, music, movies, nollywood
sportsfootball, soccer
healthwellness, medical
education–
lifestylefashion, food, travel
opinioneditorial, column
worldinternational, africa, global
securitycrime, defence, defense
environmentclimate
religionfaith, church, mosque
generalfallback for unrecognised categories
Rate limits and errors

The default limit is 50 requests an hour per key. A batch counts each article (a batch of five is five). Over the limit, the API answers 429 Too Many Requests. Ask us for a higher limit if your publication needs one.

HTTP status codes

CodeMeaningWhat to do
200SuccessArticle accepted and processed
202AcceptedBatch accepted for asynchronous processing
400Bad requestCheck the errors array in the response body
401UnauthorisedMissing or invalid API key
403ForbiddenAccount deactivated or category not allowed
429Rate limitedWait and retry. Check rate_limit_per_hour via /status
500Server errorRetry after a short delay. Contact us if it persists

Error response

json
{
  "success": false,
  "errors": [
    "title is required and must be at least 10 characters",
    "published_at must be a valid date (ISO 8601)"
  ]
}
WordPress plugin

The official plugin sends each newly published post to Plus234Feed. No code needed.

Installation

  1. Get the plus234feed-publisher plugin folder from the team.
  2. Upload it to /wp-content/plugins/.
  3. Activate it under Plugins in wp-admin.
  4. Open Settings, then Plus234Feed, and enter your API key.
  5. Press Test Connection.
  6. Publish a post. It appears on Plus234Feed.

Settings

SettingDescription
API keyYour publisher key, starting p234_
Webhook URLPre-filled. Change only if the team says so.
Default categoryUsed when no WordPress category maps
EnableTurn sending off without deactivating the plugin

How it works

On Publish, the plugin extracts the title, content, featured image, categories and tags, maps the WordPress category to a Plus234Feed one, sends the article through a scheduled event, and marks the post so it is not sent again on update. Only newly published posts are sent.

Category mapping

WordPress categoryPlus234Feed category
News, Breakinggeneral
Politics, Governmentpolitics
Business, Economybusiness
Technology, Techtechnology
Entertainmententertainment
Sports, Footballsports
Health, Wellnesshealth
Educationeducation
Lifestyle, Fashionlifestyle
Opinion, Editorialopinion
World, Internationalworld
Security, Crimesecurity
Full example

Submit an article, then check your status.

1. Submit

bash
curl -X POST https://article-processor.plus234feed.com/api/webhook/article \
  -H "Authorization: Bearer p234_abc123def456..." \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Lagos State Launches Free Wi-Fi Initiative in Public Spaces",
    "content": "The Lagos State Government has announced a new initiative to provide free wireless internet access in over 200 public spaces across the state...",
    "url": "https://lagosnews.ng/2026/02/10/free-wifi-initiative",
    "category": "technology",
    "published_at": "2026-02-10T10:00:00+01:00",
    "image_url": "https://lagosnews.ng/images/wifi-launch.jpg",
    "author": "Adebayo Ogunlesi",
    "tags": ["Lagos", "WiFi", "Smart Lagos", "digital"]
  }'

2. Check status

bash
curl https://article-processor.plus234feed.com/api/webhook/status \
  -H "Authorization: Bearer p234_abc123def456..."

3. Node.js

javascript
const response = await fetch(
  'https://article-processor.plus234feed.com/api/webhook/article',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer p234_your_api_key_here',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      title: 'Lagos State Launches Free Wi-Fi Initiative',
      content: 'The Lagos State Government has announced...',
      url: 'https://lagosnews.ng/2026/02/10/free-wifi',
      category: 'technology',
      published_at: new Date().toISOString(),
    }),
  }
);

const data = await response.json();
console.log(data);

4. Python

python
import requests
from datetime import datetime

response = requests.post(
    "https://article-processor.plus234feed.com/api/webhook/article",
    headers={
        "Authorization": "Bearer p234_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "title": "Lagos State Launches Free Wi-Fi Initiative",
        "content": "The Lagos State Government has announced...",
        "url": "https://lagosnews.ng/2026/02/10/free-wifi",
        "category": "technology",
        "published_at": datetime.utcnow().isoformat() + "Z",
    },
)

print(response.json())

Need an API key?

Write to the team and we will set up your publisher account.