public function getRoomMessages($options)
    {
        if (!isset($options['room_id'])) {
            throw new MissingArgumentException('You must provide the ID of the room to fetch messages from');
        }

        $query_params = [];
        if (!empty($options['initial_id'])) {
            $query_params['initial_id'] = $options['initial_id'];
        }
        if (!empty($options['limit'])) {
            $query_params['limit'] = $options['limit'];
        }
        if (!empty($options['direction'])) {
            $query_params['direction'] = $options['direction'];
        }

        $room_id = rawurlencode($options['room_id']);

        return $this->apiRequestV2([
            'method' => 'GET',
            'path' => "/rooms/$room_id/messages",
            'jwt' => $this->getServerToken()['token'],
            'query' => $query_params
        ]);
    }