Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this pageProducts used
Looking for more inspiration?Visit the
Error
Application error

57018: 'Event' value type must be Map

Twilio Messaging DocumentationMessaging

Description

description page anchor

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.

Possible causes

possible-causes page anchor
  • You sent Event as 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 Event as 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 Event field is being serialized correctly.

Additional resources

additional-resources page anchor