[api] Set JSON and authentication on DO API calls