# DailyStory

> Keep DailyStory contacts, tags and segments up to date, add people to campaigns, and send emails and text messages.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/dailystory

## Actions

### Add contact to campaign

Add a person to a campaign as a lead, creating the contact if needed.

**Inputs**

- Campaign (`campaignId`, number, required): The campaign to add them to. Pick one, or use a campaign ID from List campaigns.
- Email (`email`, text): Their email address. Give an email or a mobile number.
- Mobile number (`mobilePhone`, text): Their mobile number with the country code, such as +15551234567.
- First name (`firstName`, text): Their first name.
- Last name (`lastName`, text): Their last name.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {},
    "Status": true
  }
}
```

### Add tags to contact

Add tags to a contact by name, creating any tag that doesn't exist yet.

**Inputs**

- Contact ID (`dsid`, text, required): The contact's DailyStory ID, from Create contact or Search contacts.
- Tags (`tags`, list, required): The names of the tags to add.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {},
    "Status": true
  }
}
```

### Create contact

Add a contact to DailyStory with an email address or mobile number.

**Inputs**

- Email (`email`, text): Their email address. Give an email or a mobile number.
- Mobile number (`mobilePhone`, text): Their mobile number with the country code, such as +15551234567.
- First name (`firstName`, text): Their first name.
- Last name (`lastName`, text): Their last name.
- Salutation (`salutation`, text): How to address them, such as Ms.
- Job title (`title`, text): Their job title.
- Company (`company`, text): Their company.
- Website (`website`, text): Their website.
- Phone (`phone`, text): Their work phone number.
- Home phone (`homePhone`, text): Their home phone number.
- Street address (`address`, text): Their street address.
- City (`city`, text): Their city.
- State or region (`region`, text): Their state or region.
- Postal code (`postalCode`, text): Their postal or ZIP code.
- Country (`country`, text): Their country.
- Do not contact (`donotcontact`, true/false): Turn on to stop all messages to them.
- Opted out of email (`optOutEmail`, true/false): Turn on if they don't want email.
- Opted out of texts (`optOutSms`, true/false): Turn on if they don't want text messages.
- Custom fields (`extendedProperties`, object): Custom field values, by the field's key (see List custom fields), such as plan: Premium.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "id": "43aaf5af35f866b1edba7"
    },
    "Status": true
  }
}
```

### Create segment

Create a segment to group contacts, either a fixed list or one that follows a search.

**Inputs**

- Name (`name`, text, required): The segment's name.
- Description (`description`, text): What the segment is for.
- Type (`segmentType`, text): Static keeps the contacts you add; Dynamic holds every contact matching Search. One of: `Static` (Static (a fixed list)), `Dynamic` (Dynamic (follows a search)).
- Search (`search`, text): For a dynamic segment, the search that picks its contacts.
- Call list (`is_call_list`, true/false): Turn on to mark the segment as a call list.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "id": 136
    },
    "Status": true
  }
}
```

### Create tag

Create a tag you can add to contacts.

**Inputs**

- Name (`name`, text, required): The tag's name.
- Description (`description`, text): What the tag is for.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "id": 34
    },
    "Status": true
  }
}
```

### Delete contact

Move a contact to the trash, where it can be restored for a few days.

**Inputs**

- Contact ID (`dsid`, text, required): The contact's DailyStory ID, from Create contact or Search contacts.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "id": "5a0d669ab6984125a1c63aaacfd0a9cd"
    },
    "Status": true
  }
}
```

### Delete segment

Move a segment to the trash.

**Inputs**

- Segment (`id`, number, required): The segment. Pick one, or use a segment ID from List segments.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "id": 136
    },
    "Status": true
  }
}
```

### Delete tag

Delete a tag.

**Inputs**

- Tag (`id`, number, required): The tag. Pick one, or use a tag ID from List tags.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {},
    "Status": true
  }
}
```

### Find or create contact

Find a contact by email or mobile number, and create them if they don't exist yet.

**Inputs**

- Email (`email`, text): The email address to look for. Give an email or a mobile number.
- Mobile number (`mobilephone`, text): The mobile number to look for, with the country code, such as +15551234567.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "contact": {
        "city": "Dallas",
        "country": "United States",
        "dateContactCreated": "2022-01-12T00:00:00",
        "dateContactLastModified": "2025-09-23T20:50:49.373",
        "donotcontact": false,
        "dsId": "43aaf5af35f866b1edba7",
        "email": "rob@example.com",
        "extendedProperties": {
          "class_of_license": "Premium",
          "stripe_customer_id": "cus_DRvE6c5V9jp"
        },
        "firstName": "Rob",
        "fullname": "Rob Howard",
        "isEmailEnabled": true,
        "isSmsEnabled": true,
        "lastName": "Howard",
        "mobilePhone": "+15557140059",
        "optOutEmail": false,
        "optOutSms": false,
        "postalCode": "75270",
        "region": "Texas",
        "status": "Active"
      }
    },
    "Status": true
  }
}
```

### Get campaign

Get one campaign, whatever its status.

**Inputs**

- Campaign (`id`, number, required): The campaign. Pick one, or use a campaign ID from List campaigns.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "campaign": {
        "allow_autopause": true,
        "campaignId": 24109,
        "campaignType": "Conversion",
        "conversionGoals": {
          "enabled": false,
          "mcls": 0,
          "mqls": 0,
          "sqls": 0,
          "suspects": 0
        },
        "cost": 0,
        "costPeriod": "None",
        "date_created": "2025-09-01T17:41:46.18",
        "date_last_updated": "2025-09-01T17:41:46.18",
        "description": "Don't Miss Our Exclusive Spring Sale!",
        "isAutoQualifyNewLead": false,
        "isNotifyNewLead": false,
        "name": "Spring Sale 2025 Launch",
        "notificationRecipients": [
          "0"
        ],
        "status": "Active",
        "utmCampaign": "Spring_Sale_2025_Launch",
        "workflowBehavior": "All"
      }
    },
    "Status": true
  }
}
```

### Get contact

Get one contact by their DailyStory ID, with their details and custom fields.

**Inputs**

- Contact ID (`dsid`, text, required): The contact's DailyStory ID, from Create contact or Search contacts.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "contact": {
        "city": "Dallas",
        "country": "United States",
        "dateContactCreated": "2022-01-12T00:00:00",
        "dateContactLastModified": "2025-09-23T20:50:49.373",
        "donotcontact": false,
        "dsId": "43aaf5af35f866b1edba7",
        "email": "rob@example.com",
        "extendedProperties": {
          "class_of_license": "Premium",
          "stripe_customer_id": "cus_DRvE6c5V9jp"
        },
        "firstName": "Rob",
        "fullname": "Rob Howard",
        "isEmailEnabled": true,
        "isSmsEnabled": true,
        "lastName": "Howard",
        "mobilePhone": "+15557140059",
        "optOutEmail": false,
        "optOutSms": false,
        "postalCode": "75270",
        "region": "Texas",
        "status": "Active"
      },
      "id": "43aaf5af35f866b1edba7"
    },
    "Status": true
  }
}
```

### Get segment

Get one segment, with how many contacts are in it.

**Inputs**

- Segment (`id`, number, required): The segment. Pick one, or use a segment ID from List segments.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "segment": {
        "description": "API Test Segment",
        "id": 1715,
        "is_call_list": false,
        "name": "Test Segment",
        "search": "",
        "segmentType": "Static",
        "status": "Active",
        "total_enabled_push": 0,
        "total_enabled_sms": 0,
        "total_members": 0,
        "total_optout_email": 0,
        "total_optout_phone": 0,
        "total_optout_push": 0,
        "total_optout_sms": 0
      }
    },
    "Status": true
  }
}
```

### List campaigns

List your active DailyStory campaigns.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "campaigns": [
        {
          "allow_autopause": true,
          "campaignId": 24109,
          "campaignType": "Conversion",
          "conversionGoals": {
            "enabled": false,
            "mcls": 0,
            "mqls": 0,
            "sqls": 0,
            "suspects": 0
          },
          "cost": 0,
          "costPeriod": "None",
          "date_created": "2025-09-01T17:41:46.18",
          "date_last_updated": "2025-09-01T17:41:46.18",
          "description": "Don't Miss Our Exclusive Spring Sale!",
          "isAutoQualifyNewLead": false,
          "isNotifyNewLead": false,
          "name": "Spring Sale 2025 Launch",
          "notificationRecipients": [
            "0"
          ],
          "status": "Active",
          "utmCampaign": "Spring_Sale_2025_Launch",
          "workflowBehavior": "All"
        }
      ]
    },
    "Status": true
  }
}
```

### List contact's tags

List the tags a contact has.

**Inputs**

- Contact ID (`dsid`, text, required): The contact's DailyStory ID, from Create contact or Search contacts.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "tags": [
        {
          "date_created": "2020-06-10T15:46:13.45",
          "description": "API Test Tag",
          "id": 33,
          "name": "Test Tag",
          "total_contacts": 0
        }
      ]
    },
    "Status": true
  }
}
```

### List contacts in segment

List the IDs of the contacts in a segment, 100 at a time unless you choose otherwise.

**Inputs**

- Segment (`id`, number, required): The segment. Pick one, or use a segment ID from List segments.
- Skip (`skip`, number): How many contacts to skip, to read later pages. At least 0.
- How many (`take`, number): How many contacts to return. DailyStory returns 100 when empty. At least 1.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "contacts": [
        "5188b876e4454f3ab4e94c7d0ecaa84a"
      ],
      "has_more_results": true,
      "skip": 0,
      "take": 100,
      "total_count": 379
    },
    "Status": true
  }
}
```

### List custom fields

List the custom contact fields set up in your account, with the key to use for each.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "graph": [
        {
          "apiname": "mobilesite",
          "campaignId": 0,
          "datatype": "Text",
          "date_created": "2018-06-27T17:51:57.027",
          "groupname": "",
          "id": 45,
          "name": "MobileSite",
          "picklist": [
            "Yes"
          ]
        }
      ]
    },
    "Status": true
  }
}
```

### List emails

List every email in your DailyStory account, with its send, open and click counts.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "emails": [
        {
          "campaignId": 144,
          "date_last_modified": "2021-11-20T22:37:12.82",
          "emailId": 93,
          "from": "hello@example.com",
          "name": "An example email",
          "status": "Active",
          "subject": "This is an example email",
          "total_clicked": 1,
          "total_opened": 4,
          "total_sent": 1409
        }
      ]
    },
    "Status": true
  }
}
```

### List leads

List the leads in your campaigns, one page at a time.

**Inputs**

- Page (`pageindex`, number): Which page to read, starting at 0. At least 0.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "HasMoreResults": false,
    "Message": "",
    "PageIndex": 0,
    "PageSize": 25,
    "Response": {
      "leads": [
        {
          "campaignId": 69,
          "company": "Test Company",
          "dateContactCreated": "2017-07-10T00:00:00",
          "dateContactLastModified": "2020-06-24T20:26:09.857",
          "dsId": "926b9821e4ee4209b337fce3162f3f19",
          "email": "rob@example.com",
          "firstName": "Rob",
          "lastName": "Email",
          "leadId": 265103,
          "leadOrigin": "Manual",
          "leadSource": "Unit Test",
          "leadStatus": "Active",
          "leadUID": "926b9821e4ee4209b337fce3162f3f19-265103",
          "mobilePhone": "+12147140059",
          "points": 13,
          "score": 5,
          "segments": [
            2,
            39
          ]
        }
      ]
    },
    "Status": true,
    "TotalCount": 1,
    "TotalPages": 1
  }
}
```

### List segments

List the segments (groups of contacts) in your DailyStory account.

**Inputs**

- Call lists only (`isCallList`, true/false): Turn on to list only segments marked as call lists.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "segments": [
        {
          "description": "API Test Segment",
          "id": 1715,
          "is_call_list": false,
          "name": "Test Segment",
          "search": "",
          "segmentType": "Static",
          "status": "Active",
          "total_enabled_push": 0,
          "total_enabled_sms": 0,
          "total_members": 0,
          "total_optout_email": 0,
          "total_optout_phone": 0,
          "total_optout_push": 0,
          "total_optout_sms": 0
        }
      ]
    },
    "Status": true
  }
}
```

### List tags

List every tag in your DailyStory account.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "tags": [
        {
          "date_created": "2020-06-10T15:46:13.45",
          "description": "API Test Tag",
          "id": 33,
          "name": "Test Tag",
          "total_contacts": 0
        }
      ]
    },
    "Status": true
  }
}
```

### List text message replies

List the replies people sent to your text messages between two days.

**Inputs**

- Text message ID (`id`, number): Only replies to this text message. Leave empty for replies to every message.
- From (`start`, date): The first day to include. DailyStory uses the first of this month when empty.
- To (`end`, date): The last day to include. DailyStory uses the last day of this month when empty.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "replies": [
        {
          "date_replied": "2023-08-13T20:32:34.5",
          "dsid": "37dcdc9ddea7156c6cbeb90dd670df7b",
          "leadid": 1,
          "message": "Thanks",
          "mobilephone": "+15551234567",
          "name": "Rob Howard",
          "sms_id": 17738
        }
      ]
    },
    "Status": true
  }
}
```

### Remove tags from contact

Take tags off a contact.

**Inputs**

- Contact ID (`dsid`, text, required): The contact's DailyStory ID, from Create contact or Search contacts.
- Tag IDs (`tag_ids`, list, required): The IDs of the tags to remove, from List tags or List contact's tags.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {},
    "Status": true
  }
}
```

### Search contacts

Search active contacts by name, email, phone or other words, one page at a time.

**Inputs**

- Search (`s`, text, required): What to search for, such as a name or email address.
- Page (`pageIndex`, number): Which page to read, starting at 0. At least 0.
- Page size (`pageSize`, number): How many contacts a page holds. At least 1.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "HasMoreResults": false,
    "Message": "",
    "PageIndex": 0,
    "PageSize": 25,
    "Response": {
      "results": [
        {
          "city": "Dallas",
          "country": "United States",
          "dateContactCreated": "2022-01-12T00:00:00",
          "dateContactLastModified": "2025-09-23T20:50:49.373",
          "donotcontact": false,
          "dsId": "43aaf5af35f866b1edba7",
          "email": "rob@example.com",
          "extendedProperties": {
            "class_of_license": "Premium",
            "stripe_customer_id": "cus_DRvE6c5V9jp"
          },
          "firstName": "Rob",
          "fullname": "Rob Howard",
          "isEmailEnabled": true,
          "isSmsEnabled": true,
          "lastName": "Howard",
          "mobilePhone": "+15557140059",
          "optOutEmail": false,
          "optOutSms": false,
          "postalCode": "75270",
          "region": "Texas",
          "status": "Active"
        }
      ]
    },
    "Status": true,
    "TotalCount": 1,
    "TotalPages": 1
  }
}
```

### Send email

Send one of your DailyStory emails to a contact, optionally changing its subject or sender.

**Inputs**

- Email (`id`, number, required): The email to send. Pick one, or use an email ID from List emails.
- Contact ID (`dsid`, text): The DailyStory ID of the contact to send it to. Give a contact ID or an email address.
- To (`email`, text): The email address to send it to. DailyStory finds or creates the contact.
- Subject (`subject`, text): A subject to use instead of the email's own.
- From (`from`, text): A sender address to use instead of the email's own.
- Preview text (`preheader`, text): Preview text to use instead of the email's own.
- Plain text (`plaintext`, text): A plain-text version to use instead of the email's own.
- Cc (`cc`, text): Addresses to copy, separated by semicolons.
- Bcc (`bcc`, text): Addresses to blind copy, separated by semicolons.
- Reply to (`reply_to`, text): One address replies should go to.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "Email sent",
    "Response": {
      "messageid": "20231127164859.ee81700d9b371f25@mg.dailystory.net"
    },
    "Status": true
  }
}
```

### Send text message

Send a text message to one phone number or contact, creating the contact if needed.

**Inputs**

- Mobile number (`mobile`, text): The number to text, with the country code, such as +15551234567. Give a number or a contact ID.
- Contact ID (`dsid`, text): The DailyStory ID of the contact to text.
- Message (`message`, text, required): What the text message says.
- Image link (`mediaurl`, text): A link to an image to send with it.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "Text Message sent",
    "Response": {},
    "Status": true
  }
}
```

### Update contact

Change an existing contact's details, status or custom fields.

**Inputs**

- Contact ID (`dsId`, text, required): The contact to change, from Create contact or Search contacts.
- Email (`email`, text): Their email address.
- Mobile number (`mobilePhone`, text): Their mobile number with the country code, such as +15551234567.
- First name (`firstName`, text): Their first name.
- Last name (`lastName`, text): Their last name.
- Salutation (`salutation`, text): How to address them, such as Ms.
- Job title (`title`, text): Their job title.
- Company (`company`, text): Their company.
- Website (`website`, text): Their website.
- Phone (`phone`, text): Their work phone number.
- Home phone (`homePhone`, text): Their home phone number.
- Street address (`address`, text): Their street address.
- City (`city`, text): Their city.
- State or region (`region`, text): Their state or region.
- Postal code (`postalCode`, text): Their postal or ZIP code.
- Country (`country`, text): Their country.
- Status (`status`, text): Set the contact's status. One of: `Active`, `Inactive`, `Spam`, `Deleted`.
- Do not contact (`donotcontact`, true/false): Turn on to stop all messages to them.
- Opted out of email (`optOutEmail`, true/false): Turn on if they don't want email.
- Opted out of texts (`optOutSms`, true/false): Turn on if they don't want text messages.
- Custom fields (`extendedProperties`, object): Custom field values, by the field's key (see List custom fields), such as plan: Premium.

**Outputs**

- `data` (object): The response from DailyStory.

**Example output**

```json
{
  "data": {
    "Message": "",
    "Response": {
      "id": "43aaf5af35f866b1edba7"
    },
    "Status": true
  }
}
```
