Error

dangerous_file_type

That kind of file cannot be attached

HTTP status422
RetryNo: fix the request first
detailsfilename: the file that was refused.

What happened

That kind of file cannot be attached.

Why

A file you attached is a kind that can run code or hide what it is (a program, a script, a disguised extension), so it was not attached. message names the file.

How to fix it

Send the content another way (a link, a PDF or an image), then send again.

Example response

HTTP 422
{
  "error": "dangerous_file_type",
  "message": "That kind of file cannot be attached.",
  "requestId": "req-8f2c1d4b",
  "retryable": false,
  "docs": "https://docs.vlayers.ai/errors/dangerous_file_type"
}

See Errors, retries and idempotency for how to handle errors in general.

On this page