Trying to create an endpoint to receive API requests but is not working

Found my issue (that had since october)

I was writing the “methods” with “s” at the end and is “method”, singular

'routes' => [
    'api' => [
        'mautic_zender_receive_hello' => [
            'path'       => '/zender/receive-hello',
            'controller' => 'MauticPlugin\MauticZenderBundle\Controller\ApiController::receiveHello',
            'method'    => ['POST'],  // Lista de todos los métodos HTTP
            'defaults'   => [],
        ],
    ],
],

This is the correct usage
With the “s” at the end it only accepted the “GET” method

Found very useful this command: php bin/console debug:router > routes.txt
And the solution came from this example: mautic-contact-source/Config/config.php at b8f128a26e8c64fc05bbaf86f7786f7a10f0e1ef · TheDMSGroup/mautic-contact-source · GitHub