   fheHashCdnUrl = -> fheKeysCdnUrl() + '/hash'
 
   fhePrivateKeyUrl = -> fheKeysUrl() + '/private'
-  fhePrivateKeyCdnUrl = -> fheKeysCdnUrl() + '/private'
+  fhePrivateKeyCdnUrl = (userId) -> fheKeysCdnUrl() + '/private/' + userId
 
   fheSearchPrivateKeyUrl = -> fheKeysUrl() + '/searchprivate'
-  fheSearchPrivateKeyCdnUrl = -> fheKeysCdnUrl() + '/searchprivate'
+  fheSearchPrivateKeyCdnUrl = (userId) -> fheKeysCdnUrl() + '/searchprivate/' + userId
 
   #
   # salt endpoints

    #

    @getFHESearchPrivateKey: ->
      Requests.getBlockCiphertextFromUrl(
        fheSearchPrivateKeyCdnUrl()
      )

    @setFHESearchPrivateKey: (fheSearchPrivateKey) ->

    #

    @getFHEPrivateKey: ->
      userId = getOwnUserId()
      Requests.getBlockCiphertextFromUrl(
        fhePrivateKeyCdnUrl(userId)
      )

    @setFHEPrivateKey: (fhePrivateKey) ->
