def METHOD_NAME(data):
    try:
        response = response = urlquick.post(URL + 'documents', data=data)
        if 'key' in response.json():
            result = URL + response.json()['key']
            return True, result
        if 'message' in response.json():
            return False, "Unable to upload log file: " + response.json()['message']
        Script.log('error: %s' % response.text)
        return False, "Unable to upload log file"
    except Exception:
        return False, "Unable to retrieve the paste url"