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

# Send a Loop followup email

> Sends a followup email via Loop (email service) after a call interaction.

Sends a followup email via Loop (email service) after a call interaction.

### Request body

`AutomationPayload`

**call\_sid** `string,null`

Twilio call SID

**customer\_phone** `string,null`

Customer phone number in E.164 format

**metadata** `object`

Optional workflow-specific metadata

**reason** `string,null`

Human-readable workflow reason or note

**session\_id** `string,null`

Voice session identifier when the automation is tied to a persisted session

**to** `string,null`

Destination phone number or escalation target

### Response

`AutomationResponse`

**error** `string,null`

Error message (present on failure)

**ok** `boolean` *required*

Whether the automation executed successfully

**result** `object`

Result payload returned by the function (present on success)

### Status codes

| Code | Meaning |
| - | - |
| `200` | Automation executed successfully |
| `400` | Automation execution failed |
| `401` | Unauthorized - invalid or missing bearer token |
| `500` | Internal server error |

```bash cURL theme={null}
curl --request POST \
  --url 'https://api.voice.stateset.com/api/v1/automations/email/loop-followup' \
  --header "Authorization: Bearer $STATESET_VOICE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "call_sid": "CA1234567890abcdef1234567890abcdef",
  "customer_phone": "+15555555678",
  "metadata": {
    "order_id": "ORD-12345"
  },
  "reason": "customer requested a human agent",
  "session_id": "550e8400-e29b-41d4-a716-446655440000"
}'
```

```json 200 theme={null}
{
  "ok": true,
  "result": {
    "message_sid": "SM1234567890abcdef",
    "queued_at": "2026-05-14T17:42:09Z"
  }
}
```


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