# 90006: Invalid direction

Log Type: TWILIO

Log Level: ERROR

## Description

This error means the request included an invalid `direction` value for a message. Valid Message resource directions are `inbound`, `outbound-api`, `outbound-call`, and `outbound-reply`.

### Possible causes

* The request sent a `direction` value that is not one of the supported Message resource directions.
* The application or integration mapped the wrong value into the message direction field.

### Possible solutions

* Update the request or integration to use one of the supported values: `inbound`, `outbound-api`, `outbound-call`, or `outbound-reply`.
* Review the code that creates or updates the message and remove any unexpected `direction` value.
* If the request is already using a valid value and the error continues, contact Twilio Support.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [Messaging API Overview](/docs/messaging/api)
