Share in a browser¶
Get an access token and the web page to paste it on, so someone who doesn't use the SDK (a manager, a reviewer, a customer) can read the report in their browser.
report_access.py
# report_access.py - a token that opens the report in a web browser
# usage: python report_access.py <job id>
import os
import sys
from centific import PhysicalAI
BASE_URL = "https://humanoidiq-dev.centific.com"
client = PhysicalAI(api_key=os.environ["CENTIFIC_API_KEY"], base_url=BASE_URL)
access = client.qc.get(sys.argv[1]).token()
if not getattr(access, "token", None):
sys.exit("No token yet - one is issued once the job is 'queued' or later.")
print("open :", getattr(access, "viewer_url", None) or f"{BASE_URL}/try/report/")
print("token :", access.token, " <- paste this on that page")
print("expires:", access.expires_at)
How to use it¶
Open the printed page in a browser and paste the token. The report appears once the
job is complete.
Sample output¶
open : https://humanoidiq-dev.centific.com/try/report/
token : SS-7F22B9C1-... <- paste this on that page
expires: 2026-10-30 10:41:55+00:00
Rules for tokens¶
- A token lasts 7 days. Run the script again for a fresh one, for as long as the report exists (30 days).
- Each run replaces the previous token. Only the newest one works.
- The job id alone never opens a report. Only the token does.
Anyone with the token can read that report
Share it like you'd share the PDF.