Michael Viescas
11/06/2022, 5:59 PMimport requests
account_id="REDACTED"
workspace_id="0851ecb8-a917-43ce-b7d6-c7332cbdc608"
base_url=f"<https://api.prefect.cloud/api/accounts/{account_id}/workspaces/{workspace_id}>"
endpoint=f"{base_url}/api/hello"
headers={"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
r=requests.get(endpoint, headers=headers)
print(endpoint)
print(r.status_code)
print(r.json())
It generates this output:
<https://api.prefect.cloud/api/accounts/REDACTED/workspaces/0851ecb8-a917-43ce-b7d6-c7332cbdc608/api/hello>
404
{'detail': 'Not Found'}
Any help would be much appreciated!
NOTE - I can fire up a local Orion server and hit /api/hello just fine.jawnsy
11/06/2022, 6:24 PMMichael Viescas
11/06/2022, 6:32 PM