An Armistice is a cease fire between two parties, and in this case it was the Allies and the Central Powers. The armistice between the Allies and Germany was signed in a railway carriage in Compiègne Forest on November 11, 1918, and marked the end of the First World War on the Western Front. Here is some of the telegrams informing the allies of a peace treaty.

The German Government requests the President of the United States of America to take steps for the restoration of peace, to notify all belligerents of this request, and to invite them to delegate positions for the purpose of taking up negotiations. The German Government accepts, as a basis of peace negotiations, the Program laid down by the President of the United States in his message to Congress on 8, January 1918, and his subsequent pronouncements, particularly in his address on 27, September 1918.
In order to avoid further bloodshed the German Government requests to bring about the immediate conclusion of an armistice on land, on water, and in the air.

—Max, Prince of Baden, Imperial Chancellor

President Woodrow Wilson's reply on 23, October 1918, contained the following:

If the Government of the United States must deal with the military masters and the monarchical autocrats of Germany now, or if it is likely to have to deal with them later, in regard to the international obligations of the German Empire, it must demand not peace negotiations, but surrender. Nothing can be gained by leaving this essential thing unsaid.

The Armistice was agreed upon at 5:00 AM on 11, November 1918, to come into effect at 11:00 AM. Paris time, for which reason the occasion is sometimes referred to as "the eleventh (hour) of the eleventh (day) of the eleventh (month)". It was the result of a hurried and desperate process.