Skip to content

Instantly share code, notes, and snippets.

@avipars
Last active April 20, 2025 12:00
Show Gist options
  • Save avipars/3f1a6e41028ad9d2660e0f7b36fdfd7c to your computer and use it in GitHub Desktop.
Save avipars/3f1a6e41028ad9d2660e0f7b36fdfd7c to your computer and use it in GitHub Desktop.
import requests
def remix(project_id, bearer_token):
url = f"https://api.lovable.dev/projects/{project_id}/remix"
payload = {
"include_history": "false",
}
headers = {
"Authorization": f"Bearer {bearer_token}",
"Content-Type": "application/json"
}
return requests.post(url, json=payload, headers=headers)
if __name__ == "__main__":
project_id = input("Enter project id: ")
bearer = input("Enter your bearer token: ")
result = remix(project_id, bearer)
print(result.status_code)
print(result.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment