---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/57005#article
headline: "57005: 'Category' is too long"
url: https://www.twilio.com/docs/api/errors/57005
inLanguage: en
dateModified: 2026-03-26T06:28:41.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 57005: 'Category' is too long

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when the `Category` value in your request is longer than Twilio accepts. For SendGrid email sends, each category must be 255 characters or fewer.

### Possible causes

* The `Category` value contains more than 255 characters.

### Possible solutions

* Shorten `Category` to 255 characters or fewer before you send the request.
* Validate the value in your application and reject or trim any overlong category names before submission.
* Use categories for broad message grouping, and keep each category label concise.

#### Additional resources

* [Working with Categories](/docs/sendgrid/for-developers/sending-email/categories)
* [Mail Send Errors](/docs/sendgrid/api-reference/mail-send/errors)
* [Debugging Your Twilio Application](/docs/usage/troubleshooting/debugging-your-application)
