MBT Company
← All pages in this section

ATTACHMENT_TYPE_UNSUPPORTED

Status: 415 Unsupported Media Type

What it means

The assistant can only read PDF, JPG, PNG or HEIC files, and yours is of another type.

What to do

Save the file in one of those types and attach it again.

Example of the answer

The API answers with this JSON (title and detail change with the situation and the language):

{
  "type": "https://docs.mbtcompany.eu/errors/attachment-type-unsupported",
  "title": "Unsupported Media Type",
  "status": 415,
  "detail": "The assistant can only read PDF, JPG, PNG or HEIC files, and yours is of another type.",
  "code": "ATTACHMENT_TYPE_UNSUPPORTED"
}