Regarding API

I want to know that is adding ssh keys through API makes permission read only ???
If it is how can we add ssh keys with write permission through API only