import requests headers = { 'PRIVATE-TOKEN': '<your_access_token>', } response = requests.get('https://gitlab.example.com/api/v4/projects/:id/access_requests', headers=headers)