Webhooks

Inbound Message

POST
/v1/Webhooks/InboundMessageWebhook

InboundMessageWebhook is sent to the MessagingConfig.InboundCallbackUrl when an Inbound Message is received for one of your Phone Numbers.

AuthorizationBasic <token>

Basic Authorization header using the BASIC scheme. Use a pair companySid:token to access the API.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/v1/Webhooks/InboundMessageWebhook" \  -H "Content-Type: application/json" \  -d '{    "WebhookSid": "WH08dba8f78b5eabd733eba3812a614e8e8257628ef32c888b",    "Sid": "IM99d9812a055b3da13d3faa216fcf4574b64b19be32626243",    "From": "+19876543210",    "To": "+11234567890",    "AdditionalRecipients": [      "+11234567891",      "+11234567892"    ],    "EventDate": "2023-09-09T15:00:00.000Z",    "Text": "Glad to see you!",    "MediaUrls": [      "string"    ],    "SegmentCount": 1,    "ConversationMetadata": "string",    "BrandSid": "string",    "CampaignSid": "string",    "MessagingConfigSid": "string"  }'
Empty