Blog / Action network· December 1, 2026

The Action Network API: A Practical Guide for Your Website

How to get an Action Network API key, add people, submit custom forms, and receive webhooks, with working examples and the limits to plan around.

Gary Bunofsky

Gary Bunofsky

Lead Developer

Action Network's embeds cover most of what a website needs. The API is for everything else: a signup form that has to match your design exactly, a tool that adds people from another system, or a server that reacts the moment someone takes action.

This guide covers getting access, the request basics, the two endpoints most websites need, and webhooks. Every example uses Action Network's v2 API.


1. Decide Whether You Need the API at All

Start here, because the API adds a server and a secret to look after.

If you only want a form that looks like your site, you probably don't need it. The raw HTML embed gives you markup you can style with your own CSS. Our guide to integrating Action Network forms walks through it.

Reach for the API when:

  • You're building your own form markup and want submissions to count against an Action Network form.
  • Another system (a donation tool, an event app, a custom portal) needs to add or tag people.
  • You want to react to actions in real time with webhooks.
  • You're syncing data between Action Network and another database.

2. Get an API Key

API keys and webhooks are a partner feature. If your account doesn't have access yet, contact Action Network about becoming a partner.

Once you have access:

  1. Open the Start Organizing menu and choose API & Sync.
  2. Pick the list the key is for: your own, or a group you administer.
  3. Generate the key.

Each user and each group has its own key, and it only reaches that list's data. Regenerating a key revokes the old one immediately, so update your server before you do.

Keep the key on your server. Never put it in front-end JavaScript, a public repository, or a form's hidden field.


3. The Basics

Every request goes to https://actionnetwork.org/api/v2/ and carries your key in a header:

curl https://actionnetwork.org/api/v2/people \
  -H "OSDI-API-Token: YOUR_API_KEY"

A few things to know before you write more than one request:

  • Format. Responses are HAL+JSON. Each resource has a _links object pointing to related resources. Send request bodies as application/json.
  • Rate limit. Four calls per second. Queue your requests and retry with backoff when you hit it.
  • Pagination. Collections return 25 records per page, and 25 is the maximum. Follow _links.next.href until it's gone.
  • Filtering. Some collections accept an OData-style filter, such as ?filter=modified_date gt '2026-11-01'.

4. Add or Update a Person

The Person Signup Helper is the only way to POST people directly. Send a person object with at least an email address or phone number, and optionally tags to add or remove by name.

curl -X POST https://actionnetwork.org/api/v2/people/ \
  -H "OSDI-API-Token: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "person": {
      "given_name": "Maya",
      "family_name": "Lopez",
      "email_addresses": [{ "address": "[email protected]" }],
      "postal_addresses": [{ "postal_code": "19104" }]
    },
    "add_tags": ["Website signup", "Volunteer interest"]
  }'

How it treats existing records matters more than the request shape:

  • Action Network matches people by email address. If Maya is already on your list, her record is updated instead of duplicated.
  • New people are subscribed to email by default. Existing people keep their current subscription status unless you send one.
  • Tags are matched by name against tags that already exist on the list. A tag name that doesn't exist is ignored, not created. Create tags in Action Network first.

5. Submit Your Own Form to an Action Network Form

If you build a custom form, you usually want submissions to land on an Action Network form, not only on the list. That way they show up in the form's reports, trigger its autoresponse, and keep their source.

The Record Submission Helper does this:

// server-side, e.g. a serverless function your form posts to
const response = await fetch(
  `https://actionnetwork.org/api/v2/forms/${FORM_ID}/submissions/`,
  {
    method: 'POST',
    headers: {
      'OSDI-API-Token': process.env.ACTION_NETWORK_KEY,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      person: {
        given_name: data.firstName,
        family_name: data.lastName,
        email_addresses: [{ address: data.email }],
        postal_addresses: [{ postal_code: data.zip }],
      },
      add_tags: ['Website signup'],
      'action_network:referrer_data': { source: data.source || 'website' },
      triggers: { autoresponse: { enabled: true } },
    }),
  }
);

To find the form ID, list your forms with GET /api/v2/forms. The ID is the UUID at the end of each form's _links.self.href.

Some details worth knowing:

  • This endpoint works without an API key. Action Network calls it a "blind POST." It returns success or an error, but no data. We still send it from a server with the key, so we can log what came back and keep the form ID out of client code.
  • A person can only have one submission per form. A second submission from the same person replaces the first.
  • The autoresponse only sends if the form has one turned on in Action Network. Setting the trigger doesn't override that.
  • referrer_data.source is what shows up as the source in Action Network reports. Pass through the source URL parameter so your email and social links keep their attribution.

6. Receive Webhooks

Webhooks send you a request when someone acts, so you don't have to poll.

To set one up, open API & Sync, select the list or group, then choose Webhooks and New Webhook. The URL must use HTTPS. New webhooks start switched off, so turn yours on and use Send Test to check it.

You can trigger a webhook on a specific action, all actions, all actions plus uploads, or new subscriptions.

Each request is a JSON array of objects, keyed by type, such as osdi:submission or osdi:signature. It includes only the data entered during that action, with _links you can follow for the full record. There's usually one object per array.

Your endpoint has to be fast. Action Network expects an HTTP 200 within 500 milliseconds and treats anything else as an error. Failed deliveries are retried three times over an hour, then dropped. So acknowledge first and do the work afterward:

// Express example
app.post('/webhooks/action-network/:secret', (req, res) => {
  if (req.params.secret !== process.env.AN_WEBHOOK_SECRET) {
    return res.sendStatus(404);
  }

  res.sendStatus(200); // respond before doing anything slow

  for (const item of req.body) {
    queue.add({ key: item.idempotency_key, payload: item });
  }
});

Three things that example handles on purpose:

  • No signature. Action Network's docs don't describe a signing header, so we put a long random secret in the URL path and reject anything without it.
  • Retries and duplicates. Each message carries an idempotency_key that stays the same across retries. Store it and skip keys you've already processed.
  • Order. Deliveries aren't guaranteed to arrive in order and typically land within about five minutes. Don't build anything that depends on sequence.

7. Handle Volume Without Hitting Limits

For bulk work, add background_request=true to supported requests, including the Person Signup Helper and Record Submission Helper. Action Network returns 200 with an empty body right away and processes the request later. You lose the response data, but imports run much faster.

For reporting across your whole list, the API is the slow way. Action Network offers a read-only SQL mirror for that. Ask them whether your account qualifies.


Where This Fits

Most of the Action Network builds we see combine two or three of these pieces: a custom form that posts through the submission helper, a webhook that tells another system about it, and a nightly sync for anything the webhook misses.

Donations are a common example. If you raise money on ActBlue, its webhook integration can send contributions into Action Network. Our guide to adding ActBlue to your website covers that side. If your organization uses EveryAction as well, see connecting your website to EveryAction and NGP VAN.


Want a Second Pair of Hands?

We build Action Network integrations and workflows for nonprofits and advocacy groups: custom forms, webhooks, and the syncs that keep your list clean. Tell us what you're trying to do.

More thinking

All posts
A megaphone
mobilize · December 1, 2026

How to Show Mobilize Events on Your Website

Use the public Mobilize API to list your upcoming events on your own site. Finding your organization ID, filters, rendering, caching, and RSVPs.

Stacked sheets of paper
everyaction · December 1, 2026

Connecting Your Website to EveryAction and NGP VAN

Embed EveryAction forms with ActionTag, or use the NGP VAN API to find or create people and apply activist codes. Auth, access tiers, and examples.

Tall stone pillars in soft light, suggesting a building under construction.
nonprofit · December 1, 2026

Who Designs Capital Campaign Websites for Nonprofits?

Your options for a capital campaign website, what the site needs to do at each phase, and how Loopdash designs and builds them for nonprofits.