are here some guys, which are familar with api-calls over python especially graylog?
At the moment i try to implement a small test-api-call with python (see below).
With curl i get a valide response as json-object. With python i get a response, that my authorization ist not valid (401-Response.) See code below.
Can somebody help me or give me some hints, thank you!: The token is valide, because curl is working for me.
Gerne auch in Deutsch antworten!

-----------------------------------------------------------------------------------------------------
import requests
api_url=https://172.168.98.208:9000/api/system?pretty=true’
bearer_token=‘11111111111111111111’ #dummy-token
headers = {“Authorization:” “{bearer_token}”}
response = requests.get(api_url, headers=headers, verify=False)
print(response.status_code)
--------------------------------------------------------------------------------------------
Grüße Kai