I need to add a text record to domain

I need to verify my ownership of my domain and one of the means provided is for me to add a text record. How do I accoumplish this?

Do you mean via the api? (Since you posted here?) Or just how to add a TXT record in the dashboard?