57018: 'Event' value type must be Map
MESSAGING
ERROR
Your request sent the Event field with the wrong type. Twilio expects Event to be a map, so this error appears when the request includes a non-object value. Messaging event payloads in Event Streams are published as JSON objects with nested data objects.
- You sent
Eventas a string, array, number, or other non-map value. - The request body does not match the JSON object structure used by Messaging event payloads.
- Send
Eventas a JSON object/map with key-value pairs, not as a scalar or array. - Compare your payload with the published Event Streams examples and correct any field types before you retry the request.
- Use the debugging guide to inspect the request body and confirm the
Eventfield is being serialized correctly.