Hi all, I’m using GrampsWeb on 6.0.6 with Gramps Web API 3.5.0.
I currently use the getMetadata API to get metadata using python.
I’m now attempting to use the getAllReports API to get details on reports but I am getting a 401 error:
{‘message’: “Missing JWT in headers or query_string (Missing Authorization Header; Missing ‘jwt’ query paramater)”}
My script is below, with the token redacted
headers={'accept': 'application/json', 'Authorization': 'Bearer <token>'}
link='https://gramps.malakan.co.uk/api/reports?include_help=false'
resp = requests.get(f"{link}", headers=headers, timeout=10)
The token works fine for getting the metadata but not with the reports. What am I doing wrong, do I need to submit the token differently for reports?