       d.resolve
         expiry: body.access.token.expires,
         token: body.access.token.id,
-        endpoint: designateEndpoint
+        endpoint: designateEndpoint+"v1/"
   d.promise
 
 listDomains = (token, endpoint) ->
   d = Q.defer()
   options =
-    url: endpoint + '/domains'
+    url: endpoint + 'domains/'
     json: true
     headers:
       'Accept': 'application/json'

listRecords = (token, endpoint, domainId) ->
  d = Q.defer()
  options =
    url: endpoint + '/domains/' + domainId + '/records'
    json: true
    headers:
      'Accept': 'application/json'

addRecord = (token, endpoint, domainId, record) ->
  d = Q.defer()
  options =
    url: endpoint + 'domains/' + domainId + '/records'
    json: true
    headers:
      'Accept': 'application/json'
