Skip to content

Netasampark API Overview

The Netasampark REST API enables you to integrate campaign data with external systems, automate workflows, and build custom experiences.

Base URL

https://api.netasampark.com/v1

All requests must include an Authorization: Bearer <token> header. Generate tokens from the admin panel under Developer Settings.

Core Resources

  • Voters – Create, update, and query voter records.
  • Segments – Manage smart lists that power targeting.
  • Campaigns – Launch, pause, and monitor campaign activity.
  • Messages – Trigger outbound communication or fetch delivery reports.
  • Grievances – Submit and track constituent issues.

Authentication & Rate Limits

  • OAuth 2.0 client credentials flow.
  • Tokens expire after 24 hours; refresh proactively.
  • Default rate limit: 600 requests per minute per tenant (subject to plan).
  • Exceeding limits returns HTTP 429 Too Many Requests with Retry-After.

SDKs & Tools

  • Official SDKs: @netasampark/js-sdk, netasampark-php-sdk.
  • Postman collection available in the admin portal.
  • CLI utilities for bulk imports and campaign monitoring.

Refer to Webhooks → for real-time event subscription.