         configurationKeys: @backend.configurationKeysForProxy()
 
       url = "/app/#{dataHelpers.getAppId()}/service_providers.json"
-      steroidsCli.debug "PROVIDER", "POSTing #{JSON.stringify(data)} to URL #{url}"
-      @legacyClient.post url, data, (err, req, res, obj) =>
+      steroidsCli.debug "PROVIDER", "POSTing #{JSON.stringify(data)} to URL #{configApiBaseUrl}/#{url}}"
+
+      @apiClient
+        method: "post"
+        json: data
+        url: "#{configApiBaseUrl}/#{url}"
+      , (err, res, body) =>
+
+        obj = body
+
         if obj.uid
           steroidsCli.debug "PROVIDER", "Creating a new provider #{@name} ID: #{@typeId} to cloud returned success: #{JSON.stringify(obj)}"
 

    return new Promise (resolve, reject) =>
      steroidsCli.debug "PROVIDER", "Getting providers from cloud"

      @apiClient
        method: "get"
        url: "/app/#{dataHelpers.getAppId()}/service_providers.json"
      , (err, res, body) =>

        if err?
          steroidsCli.debug "PROVIDER", "Getting providers from cloud returned failure: #{JSON.stringify(obj)}"
          reject new CloudReadError err
          return

        steroidsCli.debug "PROVIDER", "Getting providers from cloud returned success: #{JSON.stringify(obj)}"
        result = []
        body.forEach (p)=>
          result.push @fromCloudObject(p)
        resolve result


      url = "/app/#{dataHelpers.getAppId()}/raml.yaml?identification_hash=#{dataHelpers.getIdentificationHash()}"

      steroidsCli.debug "PROVIDER", "GETting from URL: #{url}"
      @apiClient.get
        method: "get"
        url: "#{configApiBaseUrl}/#{url}"
      , (err, res, body) =>

        if err?
