> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thanks.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Recipient to Campaign

> Add a recipient to an existing campaign via API

The easiest way to send mailers is to add recipients to an existing campaign.  Campaigns are associated with a mailing list, so adding a recipient to the corresponding mailing list adds them to the campaign.

<Steps>
  <Step title="User Sets Up Campaign in thanks.io dashboard">
    Details on setting up a campaign can be found here - [https://help.thanks.io/create-a-campaign-send-mailers-automatically](https://help.thanks.io/create-a-campaign-send-mailers-automatically)
  </Step>

  <Step title="List All Mailing Lists">
    List all mailing lists via the API and allow the user to select the appropriate one.

    See [mailing lists](/api-reference/endpoint/mailing-lists/list-all) for more info.

    ```bash theme={null}
    curl -X GET "https://api.thanks.io/api/v2/mailing-lists/" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" 
    ```
  </Step>

  <Step title="Add Recipient to Mailing List">
    Add a recipient to the selected mailing list via the API.

    See [recipients](/api-reference/endpoint/recipients/create-recipient) for more info.

    ```bash theme={null}
    curl -X POST "https://api.thanks.io/api/v2/recipients" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{
        "name": "John Doe",
        "address": "123 Main Street, Any Town, NY 12345",
        "mailing_list_id": "MAILING_LIST_ID_FROM_PREVIOUS_STEP"
      }'
    ```
  </Step>
</Steps>
