In recent updates for the entry of foreigners to Thailand requires that a certificate of entry must first be obtained from an embassy or consulate in the foreigner’s home country prior to coming to Thailand.
It is however not guaranteed that the certificate of entry will be given as it does depend on the officers issuing the certificate, therefore it is advised to go early to apply for it.
Read more in the link here for information regarding this new requirement.