# Process external messages

Processes external messages including device patches and manifest data. Supports different message types for various data processing needs.

Endpoint: POST /external/messages
Version: 1.4.0.0
Security: bearerAuth

## Header parameters:

  - `customer_id` (string, required)
    Customer identifier

  - `authorized_groups` (string, required)
    Authorized groups for access control

  - `message_type` (string, required)
    Type of message to process

## Request fields (application/json):

  - `message_type` (string)
    Enum: "DEVICE_DATA", "MANIFEST_DATA", "CARGOIQ"

  - `data` (object)
    Message data payload

## Response 201 fields (application/json):

  - `message` (string)
    Example: Successfully processed the message

  - `code` (number)
    Example: 201

## Response 400 fields (application/json):

  - `message` (string)
    Example: Missing required headers customer_id or authorized_groups

  - `code` (integer)
    Example: 400

## Response 401 fields (application/json):

  - `message` (string)
    Example: Unauthorized access

  - `code` (integer)
    Example: 401

## Response 404 fields (application/json):

  - `message` (string)
    Example: Resource not found

  - `code` (integer)
    Example: 404

## Response 500 fields (application/json):

  - `message` (string)
    Example: Internal Server Error

  - `code` (integer)
    Example: 500

