How i can access the custom fields which are for smtp in the api.?

I want to access the custom fields as a parameters in the api response so please help me in it thanks