protected function getMessageId(?ResponseInterface $response): string
    {
        if ($response === null) {
            return '';
        }

        $content = \json_decode($response->getBody()->getContents(), true);

        return $content['MessageID'];
    }