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

# Zapier Actions

> Add SMS sending actions to your Zapier workflow

Get beta access to our Zapier integration <a href="https://zapier.com/developer/public-invite/186462/3a5a5ae4c18ed0b216f8e934e9df5369/">here</a>.

## Send SMS

### Fields

Fields required for your sending.

<ParamField body="to" type="string" required>
  The phone number of the recipient in E.164 international format (recommended) or in the local format if sent domestically.
</ParamField>

<ParamField body="message" type="string" required>
  The content of the SMS message.
</ParamField>

## Get Last Message

Use this to query your messages to find the newest message matching search critia (source, destination, direction...)

### Fields

Fields available to use in your query.

<ParamField body="to" type="string" required>
  The phone number of the recipient in E.164 international format (recommended) or in the local format if sent domestically.
</ParamField>

<ParamField query="start_date" type="string" required>
  Start date of the report query. Format `YYYY-MM-DD` for example: `2023-01-30`
</ParamField>

<ParamField query="end_date" type="string" required>
  End date of the report query. Format `YYYY-MM-DD` for example: `2023-01-30`
</ParamField>

<ParamField query="metadata_key" type="string">
  Filter for messages containing a given metadata key.
</ParamField>

### Returned Result

We return as much useful detail of the message as available.

<ParamField body="to" type="string" required>
  The phone number of the recipient in E.164 international format (recommended) or in the local format if sent domestically.
</ParamField>

<ParamField query="start_date" type="string" required>
  Start date of the report query. Format `YYYY-MM-DD` for example: `2023-01-30`
</ParamField>

<ParamField query="end_date" type="string" required>
  End date of the report query. Format `YYYY-MM-DD` for example: `2023-01-30`
</ParamField>

<ParamField query="metadata_key" type="string">
  Filter for messages containing a given metadata key.
</ParamField>
