Segue o codigo
owner = 'amzn'
repo_to_fork = 'style-dictionary'
url = f'https://api.github.com/repos/{owner}/{repo_to_fork}/forks'
url
headers = {
'Authorization': f'Bearer {acess_token}',
'X-GitHub-Api-Version': '2022-11-28',
'Accept': 'application/vnd.github+json'
}
response = requests.post(url, headers=headers)
response.status_code
O acess Token, deixei suprimido, por segurança... mas o status.code retornou o 202