Events
message.sent
Fires when Surge accepts an outbound message and passes it to the carrier for delivery.
WEBHOOK
Fires when Surge accepts an outbound message and sends it to the carrier network. This event fires before delivery is confirmed. Listen to
message.delivered for the carrier’s delivery receipt.
Common use case
Usemessage.sent to update your own records when a send is confirmed. Pair it with message.delivered to track the full delivery lifecycle.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The ID of the account in which this event occurred
The data associated with the event
The timestamp when this event occurred, in ISO8601 format
The type of the event. Always message.sent for this event.
Allowed value:
"message.sent"Response
200
Return a 200 status to indicate that the data was received successfully