> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/integrations/political-campaign-tools/directsnd.md).

# DirectSnd

Connect Anedot to DirectSnd to send supporter contacts from Action Pages, manage your connection, and review field mapping, payload data, and troubleshooting.

The **DirectSnd** integration sends supporter contacts from your Action Pages to DirectSnd, an SMS marketing platform, and lives in **Settings > Integrations**. This article covers how to get your API key, create the connection, manage your connection, review what Anedot sends, find your data, and review field mapping, payload data, and troubleshooting.

## Before You Begin

You need **Integrations: Edit permissions** to add, edit, push or delete a connection. Integrations: Edit permissions also require **Action Pages: View permissions** and **Integrations: View permissions**. See [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md).

You also need a DirectSnd API Key. Anedot sends a contact to DirectSnd only when the Submission includes a phone number.

## Connect Anedot to DirectSnd

### Step 1: Get Your DirectSnd API Key

Your DirectSnd API Key connects your Anedot account to your DirectSnd account. If you don't already have an API Key, get one from DirectSnd before you continue.

{% hint style="info" %}
You can't change the API key after you create the connection. Keep the key handy in case you need to connect again.
{% endhint %}

### Step 2: Create the Connection in Anedot

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Choose **DirectSnd**. The card is in the **SMS Marketing** category and is described as "Connect DirectSnd to Action Page submissions."
4. Leave **All Action Pages** checked to include all current and future pages. The checkbox includes the note "Includes future pages added after this integration is saved."
5. (Optional) To pick pages instead, uncheck **All Action Pages** and choose pages in **Selected pages**. If you choose two or more pages, Action Pages you add later are also included.
6. (Optional) If **All Action Pages** is checked, enter a comma separated list of Action Page IDs, with no spaces, in **Exclude Pages** to leave those pages out.
7. Leave **Team** set to **All teams**, or choose a team. The help text is "Optionally limit this connection to one team."
8. Enter your key in **DirectSnd API key**.
9. Click **Create integration**.

Anedot shows "Integration created." Your connection appears in the list as **Integration** followed by the connection ID, and **Enabled** is on.

{% hint style="info" %}
The **Team** setting is not applied to DirectSnd sends. Live sends respect your Action Page scope and **Exclude Pages**.
{% endhint %}

{% hint style="warning" %}
**Create integration** stays disabled until your Action Pages have loaded. If you uncheck **All Action Pages** and don't choose a page, Anedot shows "Select at least one Action Page, or choose All Action Pages."
{% endhint %}

Creating the connection doesn't send anything. Anedot starts sending with the next qualifying Submission that has a phone number.

## Manage Your Connection

### Edit A Connection

1. Go to **Settings > Integrations**.
2. Click **Edit** on your connection. The **Edit integration** form opens.
3. (Optional) Change the Action Pages, **Exclude Pages**, or **Team**.
4. Enter a **Name**. This field is required to save.
5. Leave the **Credentials/details JSON** box as it is. It shows only details, or "None" when empty. Credentials are never shown.
6. Click **Save integration**.

Anedot shows "Integration updated."

The **Provider** field is read-only and shows `direct_snd`. If the **Credentials/details JSON** box doesn't contain valid JSON, Anedot shows "Details must be valid JSON."

{% hint style="info" %}
The API key isn't shown or changed in the **Edit integration** form. To use a different API key, delete the connection and connect again.
{% endhint %}

### Turn A Connection Off or On

The **Enabled** checkbox is on the **Edit integration** form and is on after you create the connection. When you uncheck **Enabled** and click **Save integration**, Anedot stops live sends and **Push unsent** for your DirectSnd connection. This includes sends that were already queued or waiting to retry. Those sends are skipped and aren't delivered later. To start live sends to DirectSnd again, check **Enabled** and click **Save integration**.

### Push Unsent Donations

**Push unsent** sends Submissions in a date range that haven't already been sent successfully. This includes Submissions that failed and Submissions that were never tried. Submissions that were already sent successfully aren't sent again.

1. Go to **Settings > Integrations**.
2. Find your DirectSnd connection and click **Push unsent**.
3. Choose a date range of up to 31 days that starts within the last 12 months, then start the push.

Anedot shows "Push started." Wait about five minutes, then check **Settings > Integration Requests** for the new rows.

{% hint style="info" %}
**Push unsent** doesn't apply **Team** or **Exclude Pages**, and it sends nothing while **Enabled** is off. It skips Donation Page Submissions with no donations.
{% endhint %}

For more detail, see [Push Unsent](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#push-unsent) in Webhooks (API).

### Delete A Connection

1. Go to **Settings > Integrations**.
2. Click **Delete** on your connection.
3. Confirm when you see the prompt "Delete this integration?"

Anedot shows "Integration deleted." Records already in DirectSnd don't change.

{% hint style="danger" %}
Deleting a connection can't be undone. To send contacts to DirectSnd again, connect again.
{% endhint %}

## Data Relays

### What Anedot Sends

Anedot posts each contact directly to DirectSnd. It sends one contact per Submission that has a phone number:

* Completed donations, including the first charge of a recurring gift.
* Lead Pages, when the lead is created.
* Paid Event Pages, after capture.
* Free Event Pages, on save.

Anedot sends phone numbers as stored, in E.164 format when possible. This includes international numbers.

### Records Anedot Skips

Anedot doesn't send:

* Submissions with no phone number.
* Later recurring charges.
* Refunds, voids, chargebacks, ACH returns, and settlements.
* Abandoned Actions, later edits, and commitment changes. See [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md).
* Custom fields.
* Fund data.

When Anedot skips a send, it doesn't create an Integration Requests row.

### Tags And Consent

* `tags` is sent only when the supporter gives phone consent. The tags are "Donation Status: Donor", "MRC\_Amount:" plus the Submission total, and "MRC\_Date:" plus the date in MM/DD/YYYY format.
* Lead Page Submissions are tagged "Donation Status: Donor" with "MRC\_Amount: 0.0".
* `MRC_Amount` is the Submission total and doesn't include donor-covered fees. For a $25.00 donation, the tag is "MRC\_Amount: 25.0".
* `opt_in_date` is sent only when the supporter gives email consent, in MM/DD/YYYY format.
* `is_black_listed`, `opt_in_method`, and `message_supress` are fixed values.
* Blank values are omitted.

### Delivery And Retries

You can review every send in **Settings > Integration Requests**. See [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

* **Success:** DirectSnd returned HTTP 2xx.
* **Failure:** DirectSnd returned HTTP 400, 401, or 403. Anedot sends the failure email, and the send isn't retried automatically.
* **Error:** DirectSnd returned HTTP 500 or 503, or Anedot couldn't complete the request, for example because of a timeout. Anedot doesn't send the failure email, and the send can be retried automatically.

When a send fails, Anedot emails users who have the **Integration sync failed** notification turned on. This notification is off by default. The subject is "Anedot DirectSnd Integration Failed" when the connection has no name. When the connection has a **Name**, the subject is "Anedot" followed by the connection name and "Integration Failed". See [Notifications](https://docs.anedot.com/get-started/security/notifications.md).

## Find Your Data in DirectSnd

1. Go to **Settings > Integration Requests**.
2. Find a **Success** row for the Submission.
3. Open DirectSnd and review the contact.

What happens after DirectSnd accepts a contact is controlled by DirectSnd.

## Field Mapping

Most values are strings. Blank values are omitted.

| Field                                                           | Description                                                                                                                                                    |
| --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `number`                                                        | The supporter's phone number, in E.164 format when possible                                                                                                    |
| `first_name`, `last_name`                                       | The supporter's name                                                                                                                                           |
| `email`                                                         | The supporter's email address                                                                                                                                  |
| `tags`                                                          | Sent only when phone consent is given: "Donation Status: Donor", "MRC\_Amount:" plus the Submission total, and "MRC\_Date:" plus the date in MM/DD/YYYY format |
| `is_black_listed`                                               | Fixed string "False"                                                                                                                                           |
| `opt_in_method`                                                 | Fixed string "Anedot"                                                                                                                                          |
| `opt_in_date`                                                   | MM/DD/YYYY, sent only when email consent is given                                                                                                              |
| `message_supress`                                               | Fixed string "False"                                                                                                                                           |
| `zip_code`, `state`, `city`, `address_line_1`, `address_line_2` | The supporter's address. A blank `address_line_2` is omitted.                                                                                                  |

## Payload Data

This example shows a stored Integration Requests request body for a $25.00 one-time card donation from Annie Dot (<annie.dot@example.com>), with a phone number and with phone and email consent. Values in angle brackets are placeholders. A blank `address_line_2` is omitted.

```json
{
  "number": "<E.164 phone>",
  "first_name": "Annie",
  "last_name": "Dot",
  "email": "annie.dot@example.com",
  "tags": ["Donation Status: Donor", "MRC_Amount: 25.0", "MRC_Date: <MM/DD/YYYY>"],
  "is_black_listed": "False",
  "opt_in_method": "Anedot",
  "opt_in_date": "<MM/DD/YYYY>",
  "message_supress": "False",
  "zip_code": "<zip>",
  "state": "<state>",
  "city": "<city>",
  "address_line_1": "<line 1>"
}
```

Without phone consent, `tags` is omitted. Without email consent, `opt_in_date` is omitted.

The DirectSnd response is saved on the Integration Requests row. This article doesn't include a sample DirectSnd response.

## Troubleshooting

### A Contact Isn't in DirectSnd

1. Go to **Settings > Integration Requests** and look for a row for the Submission.
2. Confirm the Submission has a phone number.
3. Confirm **Enabled** is checked on the connection.
4. Review the connection's Action Page scope and **Exclude Pages**. Live sends respect both settings.

**Team** doesn't limit DirectSnd sends. Later recurring charges, refunds, and Submissions with no phone number aren't sent.

### You Need to Use a Different API Key

The API key can't be changed after you create the connection. Delete the connection, connect again with the new key, then use **Push unsent** to send Submissions from the date range you need.

### Stopping Sends to DirectSnd

To pause sending contacts to DirectSnd, uncheck **Enabled** on the connection and click **Save integration**. To stop sending permanently, delete the connection.

### Integration Requests Shows Failure or Error

Review the row in **Settings > Integration Requests**. Failure rows from HTTP 400, 401, or 403 aren't retried automatically, so use **Push unsent** after you resolve the cause. Error rows can be retried automatically.

If the issue continues, contact our Support team at <help@anedot.com>.

## Related Articles

* [Integrations](https://docs.anedot.com/integrations.md)
* [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md)
* [Webhooks (API)](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md)
* [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md)
* [Teams](https://docs.anedot.com/settings/access/teams.md)
* [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md)
* [Notifications](https://docs.anedot.com/get-started/security/notifications.md)
* [Political Campaign Tools](https://docs.anedot.com/integrations/political-campaign-tools.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/integrations/political-campaign-tools/directsnd.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
