# Infobip

> Send messages and read delivery logs in Infobip.

App · 10 actions. Web page: https://docs.lodol.com/docs/integrations/infobip

## Actions

### Cancel scheduled SMS

Cancel an SMS batch that has not yet been sent.

**Inputs**

- Bulk ID (`bulk_id`, text, required): Bulk ID returned when the SMS was scheduled.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "bulkId": "example",
    "status": "example"
  }
}
```

### Get SMS schedule

Read when a scheduled SMS batch will send.

**Inputs**

- Bulk ID (`bulk_id`, text, required): Bulk ID returned when the SMS was scheduled.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "bulkId": "example",
    "sendAt": "example"
  }
}
```

### Get SMS schedule status

Read the status of a scheduled SMS batch.

**Inputs**

- Bulk ID (`bulk_id`, text, required): Bulk ID returned when the SMS was scheduled.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "bulkId": "example",
    "status": "example"
  }
}
```

### List email logs

List email logs.

**Inputs**

- Message ID (`message_id`, text): Filter by the message ID returned when it was sent.
- Limit (`limit`, number): Maximum results to return. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "results": [
      {
        "messageId": "example",
        "status": {}
      }
    ]
  }
}
```

### List SMS logs

List SMS logs.

**Inputs**

- Message ID (`message_id`, text): Filter by the message ID returned when it was sent.
- Limit (`limit`, number): Maximum results to return. From 1 to 1000.
- Sent after (`sent_after`, date and time): Earliest send time.
- Sent before (`sent_before`, date and time): Latest send time.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "results": [
      {
        "messageId": "example",
        "status": {}
      }
    ]
  }
}
```

### List WhatsApp logs

List WhatsApp logs.

**Inputs**

- Message ID (`message_id`, text): Filter by the message ID returned when it was sent.
- Limit (`limit`, number): Maximum results to return. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "results": [
      {
        "messageId": "example",
        "status": {}
      }
    ]
  }
}
```

### Reschedule SMS

Change when an existing SMS batch will send.

**Inputs**

- Bulk ID (`bulk_id`, text, required): Bulk ID returned when the SMS was scheduled.
- Send at (`send_at`, date and time, required): New time to send the SMS.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "bulkId": "example",
    "sendAt": "example"
  }
}
```

### Send email

Send email.

**Inputs**

- Sender (`sender`, text, required): Verified From address.
- To (`to`, text, required): Recipient email address.
- Subject (`subject`, text, required): Subject of the email.
- Text (`text`, text, required): Plain text body of the email.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "messages": [
      {
        "messageId": "example",
        "status": {}
      }
    ]
  }
}
```

### Send SMS

Send SMS.

**Inputs**

- Sender (`sender`, text, required): SMS sender name or number.
- To (`to`, text, required): Phone number with country code, such as +15555550123.
- Text (`text`, text, required): Text of the message.
- Send at (`send_at`, date and time): When to send the SMS. Leave blank to send now.
- Bulk ID (`bulk_id`, text): Your own identifier for the scheduled SMS.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "bulkId": "example",
    "messages": [
      {
        "messageId": "example",
        "status": {}
      }
    ]
  }
}
```

### Send WhatsApp text

Send WhatsApp text.

**Inputs**

- Sender (`sender`, text, required): Registered WhatsApp sender number.
- To (`to`, text, required): Phone number with country code, such as +15555550123.
- Text (`text`, text, required): Text of the message.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "messageId": "example",
    "status": {}
  }
}
```
