import requests TOKEN = "TON_TOKEN_API" URL = "https://forge.gwenaelremond.fr/api/v1/user/repos" headers = { "Authorization": f"token {TOKEN}", "Content-Type": "application/json", "accept": "application/json" } data = { "name": "exercice", "description": "Mon depot exercice API", "auto_init": True, "private": False } response = requests.post(URL, headers=headers, json=data) print(response.status_code) print(response.json())