---
title: "Test inbound Twilio SMS orchestration"
description: "Internal test endpoint that exercises the shared inbound Twilio orchestrator without provider signature validation."
---

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

Path: Channel Automation API › Twilio

`POST /test/twilio/{workspaceId}`

Internal test endpoint that exercises the shared inbound Twilio orchestrator without provider signature validation.

## Path parameters

- `workspaceId` (`post/test/twilio/workspaceId.path.workspaceId`; string, required) — Workspace to use for the test inbound SMS.

## Request body

_Required._

- `MessageSid` (`post/test/twilio/workspaceId.MessageSid`; string, optional)
- `From` (`post/test/twilio/workspaceId.From`; string, optional)
- `To` (`post/test/twilio/workspaceId.To`; string, optional)
- `Body` (`post/test/twilio/workspaceId.Body`; string, optional)
- `NumMedia` (`post/test/twilio/workspaceId.NumMedia`; string, optional)

## Example request

```json
{
  "MessageSid": "string",
  "From": "string",
  "To": "string",
  "Body": "string",
  "NumMedia": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/test/twilio/<workspaceId>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "MessageSid": "string",
  "From": "string",
  "To": "string",
  "Body": "string",
  "NumMedia": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/test/twilio/<workspaceId>';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    MessageSid: 'string',
    From: 'string',
    To: 'string',
    Body: 'string',
    NumMedia: 'string'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/test/twilio/<workspaceId>"

payload = {
    "MessageSid": "string",
    "From": "string",
    "To": "string",
    "Body": "string",
    "NumMedia": "string"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Test inbound SMS accepted.

### 400

Missing required Twilio fields.

### 404

Workspace not found.

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`post/test/twilio/workspaceId.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`post/test/twilio/workspaceId.response.500.details`; string, optional)
- `success` (`post/test/twilio/workspaceId.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/post-test-twilio-workspace-id/index.md
