Docs / API reference

API Reference

The NingNang REST API gives programmatic access to campaigns, enrollments, content, and creator scores. Available on the Scale plan.

Scale plan required. API access is not available on Beta or Growth plans. Upgrade →

Base URL

https://ning-nang.com/api/v1/

Authentication

Send an organization API key as a Bearer token. Create keys under Workspace → API keys; the full key is shown once. Every response is scoped to your organization.

curl https://ning-nang.com/api/v1/campaigns/ \
  -H "Authorization: Bearer nng_YOUR_API_KEY"

Pagination and filters

List endpoints accept limit (default 50, max 200) and offset, and return count, limit, offset and results.

Endpoints

GET/campaigns/List campaigns

Filters: status, brand_id.

{"count": 1, "limit": 50, "offset": 0, "results": [{"id": "9b1c…", "brand": "Amara Foods", "title": "Ramadan Sale", "status": "live", "tracking_tag": "#NNG-4E8A2F", "payment_type": "per_view", "total_budget": "150000.00", "total_paid_out": "47200.00", "current_views": 812000, "landing_url": "https://amara.co.ke/ramadan", "start_date": "2026-03-01T00:00:00+00:00", "end_date": "2026-03-31T00:00:00+00:00", "created_at": "…"}]}
GET/campaigns/{id}/Campaign detail

The same fields as the list, for one campaign.

GET/enrollments/List creator enrollments

Filters: campaign_id, status. Includes the creator's short link with clicks, conversions, revenue, and enrollment-level earnings.

GET/enrollments/{id}/Enrollment detail

One enrollment.

GET/content/List content

Filters: campaign_id, verified (true/false). Metrics (views, reach, likes, comments, shares, saves), engagement rate, payout and approval status.

GET/content/{id}/Content detail

One piece of content.

GET/analytics/creator/{creator_id}/Creator Performance Index

The creator's score for each of your brands they've worked with.

{"creator_id": 7, "scores": [{"brand": "Amara Foods", "composite_score": "81.40", "engagement_quality": "88.00", "efficiency": "74.10", "commercial_impact": null, "reliability": "79.20", "campaigns_counted": 4}]}

commercial_impact is null when the creator has no tracked links; it is then left out of the composite.

Conversion postback

Report conversions from your server (Growth plan and above). Pass the nng_click value your landing page received, or a creator's short-link code. Each order_ref is counted once.

curl -X POST https://ning-nang.com/c/conversions/ \
  -H "Authorization: Bearer nng_YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"click_id": "NNG_CLICK_VALUE", "value": 2500, "order_ref": "A-1001"}'

Rate limits

API requests are rate-limited to 1,000 requests per hour per API key. Rate limit headers are included in every response:

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 987
X-RateLimit-Reset: 1718400000

Errors

The API uses standard HTTP status codes. Error responses include an error code and, where helpful, a detail message.