Skip to content

Request IDs

All successful responses provide a request_id from the X-Request-Id response header.

print(result.request_id)

For failed requests, catch the error and read exc.request_id:

import abstime
try:
client.resolve(
text="the last Friday of this month at 2 pm",
ref_time="2026-04-09T17:30:00Z",
ref_timezone="America/Los_Angeles",
)
except abstime.AbsTimeError as exc:
print(exc.request_id)