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

# Send Sms

> Documentation for the Send Sms action for Aircall

![images/aircall.svg](https://mintlify.s3.us-west-1.amazonaws.com/morfhealth/images/aircall.svg)

# Parameters

**Action** `Parameters`

**parameters**

**From** `string (Phone Number)` *required*

`ID`
This field maps to the destination API `from` field.

**To** `string` *required*

`PII`
This field maps to the destination API `to` field.

**Body**

`HI` `PII`
This field maps to the destination API `body` field.

**Subscription Topic** `string (Subscription Topic)` *required*

**Media URLs** `[]string`

This field maps to the destination API `media_url` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "body": null,
    "created_at": null,
    "direct_link": "https://api.aircall.io/v1/numbers/123/messages/456",
    "direction": "outbound",
    "id": "messageId",
    "media_url": [],
    "raw_digits": "+13055551234",
    "sent_at": null,
    "status": "pending",
    "updated_at": null
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "body": "Text content of the message",
    "created_at": "Timestamp when the message was created",
    "direct_link": "Direct link to the message resource in Aircall",
    "direction": "Direction of the message",
    "id": "Unique identifier of the sent message",
    "media_url": "List of media URLs attached to the message",
    "raw_digits": "Recipient phone number in E.164 format",
    "sent_at": "Timestamp when the message was sent",
    "status": "Delivery status of the message",
    "updated_at": "Timestamp when the message was last updated"
  }
}
```

### Result Object Field Details

You can use the result of the action's data as inputs to downstream workflow actions.

Each fetch action requires an object name, which nests the action's result data inside the downstream data context in the workflow. See [Passing Data Between Actions](https://docs.morf.health/docs/knowledge_base/passing_data_between_actions.md) for how to set it and reference the result from downstream nodes.

Here we demonstrate how to refer to this data using the prefix `$result_object_key`.

**SendSMSResponse** `Fetch Action Response Object`

**fields**

**id** `string` *required*

Unique identifier of the sent message

```json CEL theme={null}
$result_object_key.id
```

```json Example theme={null}
"messageId"
```

**status** `string` *required*

Delivery status of the message

```json CEL theme={null}
$result_object_key.status
```

```json Example theme={null}
"pending"
```

**direct\_link** `string` *required*

Direct link to the message resource in Aircall

```json CEL theme={null}
$result_object_key.direct_link
```

```json Example theme={null}
"https://api.aircall.io/v1/numbers/123/messages/456"
```

**direction** `string` *required*

Direction of the message

```json CEL theme={null}
$result_object_key.direction
```

```json Example theme={null}
"outbound"
```

**created\_at** `timing.v1.Timestamp` *required*

Timestamp when the message was created

```json CEL theme={null}
$result_object_key.created_at
```

```json Example theme={null}
null
```

**sent\_at** `timing.v1.Timestamp` *required*

Timestamp when the message was sent

```json CEL theme={null}
$result_object_key.sent_at
```

```json Example theme={null}
null
```

**updated\_at** `timing.v1.Timestamp` *required*

Timestamp when the message was last updated

```json CEL theme={null}
$result_object_key.updated_at
```

```json Example theme={null}
null
```

**raw\_digits** `string` *required*

`PII` Recipient phone number in E.164 format

```json CEL theme={null}
$result_object_key.raw_digits
```

```json Example theme={null}
"+13055551234"
```

**media\_url** `[]string` *required*

List of media URLs attached to the message

```json CEL theme={null}
$result_object_key.media_url
```

```json Example theme={null}
[]
```

**body** `string` *required*

`PII` Text content of the message

```json CEL theme={null}
$result_object_key.body
```

```json Example theme={null}
null
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.