Get an X402 session

Changed on

Get the purchased session's status and original expiry without another payment. Authenticate with managementToken, not the browser token. Connection credentials are not reissued.

get/x402/session/{id}

Request

Path parameters

idstring uuid required

Purchased session ID.

Response

Success. No payment is required.

idstring uuid required
status'active' | 'closed' | 'error' | 'close-error' required
startTimeinteger nullable required

Session start timestamp in Unix milliseconds, when available.

endTimeinteger nullable required

Session end timestamp in Unix milliseconds, when available.

timeoutMinutesinteger required

Prepaid duration chosen at creation.

expiresAtstring date-time required

Original purchased expiry, unchanged by status checks or an early stop.

Changes