---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/90006#article
headline: "90006: Invalid direction"
url: https://www.twilio.com/docs/api/errors/90006
inLanguage: en
dateModified: 2026-03-25T13:47:45.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 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)
