# SimpleTexting

> Send messages, manage contacts and lists, and watch conversations and campaigns.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/simpletexting

## Actions

### Create a contact

Create a contact with a phone number and optional profile fields.

**Inputs**

- Phone (`phone`, text, required): The contact’s phone number.
- First name (`first_name`, text): The given name.
- Last name (`last_name`, text): The family name.
- Email (`email`, text): The email address.
- Birthday (`birthday`, date): Choose the contact’s birthday.
- Comment (`comment`, text): A note about the contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Create a contact list

Create a new named contact list.

**Inputs**

- Name (`name`, text, required): The name of the new list.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Delete a contact

Remove a contact by contact ID or phone number.

**Inputs**

- Contact (`contact`, text, required): The SimpleTexting contact ID or phone number.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete a contact list

Delete the selected list.

**Inputs**

- List (`list_id`, text, required): The list id.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Evaluate message cost

Preview the format and estimated credits for a message.

**Inputs**

- Mode (`mode`, text): Choose the delivery format. One of: `AUTO`, `SINGLE_SMS_STRICTLY` (Single sms strictly), `MMS_PREFERRED` (Mms preferred). Default: `AUTO`.
- Text (`text`, text, required): The text of the message.
- Subject (`subject`, text): The MMS subject line.
- Media (`media`, list): Media URLs or saved media IDs for an MMS.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "type": "example"
  }
}
```

### Get a campaign

Get a campaign by its ID.

**Inputs**

- Campaign (`campaign_id`, text, required): The campaign id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "accountPhone": "example",
    "campaignId": "example",
    "modified": "example",
    "started": "example",
    "state": "example",
    "title": "example",
    "type": "example"
  }
}
```

### Get a contact

Get a contact by its ID.

**Inputs**

- Contact (`contact`, text, required): The SimpleTexting contact ID or phone number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "birthday": "example",
    "contactId": "example",
    "contactPhone": "example",
    "created": "example",
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "subscriptionStatus": "example",
    "updated": "example"
  }
}
```

### Get a contact list

Get a contact list by its ID.

**Inputs**

- List (`list_id`, text, required): The list id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "listId": "example",
    "name": "example"
  }
}
```

### Get a media file

Get a media file by its ID.

**Inputs**

- Media ID (`media_id`, text, required): The media id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contentType": "example",
    "id": "example",
    "link": "example",
    "name": "example",
    "status": "example"
  }
}
```

### Get a message

Get a message by its ID.

**Inputs**

- Message ID (`message_id`, text, required): The message id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "accountPhone": "example",
    "category": "example",
    "contactPhone": "example",
    "directionType": "example",
    "id": "example",
    "text": "example",
    "timestamp": "example"
  }
}
```

### Get account information

Read the email for the SimpleTexting account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example"
  }
}
```

### List campaigns

List campaigns for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.
- Account phone (`account_phone`, text): Choose the sending number, or leave empty for all numbers.
- State (`state`, text): Choose the campaign state. One of: `PAUSED`, `SENDING`, `COMPLETED`, `ERROR`, `MONITORING`.
- Start time (`start_time`, date and time): Return campaigns starting after this time.
- End time (`end_time`, date and time): Return campaigns starting before this time.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "accountPhone": "example",
        "campaignId": "example",
        "modified": "example",
        "started": "example",
        "state": "example",
        "title": "example",
        "type": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List contact lists

List contact lists for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "listId": "example",
        "name": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List contact segments

List contact segments for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "created": "example",
        "name": "example",
        "segmentId": "example",
        "updated": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List contacts

List contacts for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.
- Since (`since`, date and time): Return contacts changed since this date and time.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "birthday": "example",
        "contactId": "example",
        "contactPhone": "example",
        "created": "example",
        "email": "example",
        "firstName": "example",
        "lastName": "example",
        "subscriptionStatus": "example",
        "updated": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List custom fields

List custom fields for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "label": "example",
        "mergeTag": "example",
        "type": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List media files

List media files for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "contentType": "example",
        "id": "example",
        "link": "example",
        "name": "example",
        "status": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List messages

List messages for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.
- Account phone (`account_phone`, text): Choose the sending number, or leave empty for all numbers.
- Contact phone (`contact_phone`, text): Filter by the recipient or sender.
- Since (`since`, date and time): Return messages from this date and time.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "accountPhone": "example",
        "category": "example",
        "contactPhone": "example",
        "directionType": "example",
        "id": "example",
        "text": "example",
        "timestamp": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List sending numbers

List sending numbers for your SimpleTexting account.

**Inputs**

- Page (`page`, number): The page number, starting at 0. At least 0.
- Limit (`limit`, number): Number of results per page. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content": [
      {
        "name": "example",
        "number": "example"
      }
    ],
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### Send a text message

Send a text or multimedia message to a recipient.

**Inputs**

- Phone (`phone`, text, required): The recipient’s phone number.
- Account phone (`account_phone`, text): Choose the sending number, or leave empty for all numbers.
- Mode (`mode`, text): Choose the delivery format. One of: `AUTO`, `SINGLE_SMS_STRICTLY` (Single sms strictly), `MMS_PREFERRED` (Mms preferred). Default: `AUTO`.
- Text (`text`, text, required): The text of the message.
- Subject (`subject`, text): The MMS subject line.
- Media (`media`, list): Media URLs or saved media IDs for an MMS.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "id": "example"
  }
}
```
