# SOLAPI

> Read and send messages and check your SOLAPI balance.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/solapi

## Actions

### Get balance

Get balance.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "balance": 1.0,
    "point": 1.0
  }
}
```

### List messages

List messages.

**Inputs**

- Start date (`start_date`, date and time): Start date.
- End date (`end_date`, date and time): End date.
- Message ID (`message_id`, text): Message id.
- Group ID (`group_id`, text): Group id.
- Sender (`sender`, text): Sender.
- Recipient (`recipient`, text): Recipient.
- Limit (`limit`, number): Limit. From 1 to 500.
- Start key (`start_key`, text): Start key.
- Date basis (`date_basis`, text): Date basis. One of: `CREATED`, `UPDATED`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "messageList": {},
    "messages": [],
    "nextKey": "example"
  }
}
```

### Send message

Send message.

**Inputs**

- Recipient (`recipient`, text, required): Recipient.
- Sender (`sender`, text, required): Sender.
- Text (`text`, text, required): Text.
- Message type (`message_type`, text): Message type. One of: `SMS`, `LMS`, `MMS`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "groupId": "example",
    "messageId": "example",
    "statusCode": "example",
    "statusMessage": "example"
  }
}
```
