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)All successful responses provide a requestId from the X-Request-Id response header.
console.log(result.requestId);For failed requests, catch the error and read err.requestId:
import * as abstime from "@abstime/sdk";
try { await client.resolve({ text: "the last Friday of this month at 2 pm", refTime: "2026-04-09T17:30:00Z", refTimezone: "America/Los_Angeles", });} catch (err) { if (err instanceof abstime.AbsTimeError) { console.log(err.requestId); }}