in the form of a document, that you can keep as proof of something such as an agreementput/give something in writing: Give full details of the incident in writing.
get something in writing (=ask for a document that you can keep as proof): Make sure you get all estimates of the cost in writing.