Rensei docs

Prepare a strictly higher attach-v2 carrier epoch before Welcome.

Reserved for server-resolved selected-v3 session-shim takeover with full_host_frame_v3 and durable_carrier_proof_v2. Hosted activation remains closed before durable prepare or token mint until proof-v1 cutover, proof-v2 floor/predecessor, retained-candidate recovery, and the staged Relay receipt rail are verified.

POST
/api/daemon/session-shim/adoptions/prepare

Authorization

workerJwt
headerAuthorizationBearer <JWT>

Short-lived worker runtime JWT minted by the platform. Claims bind the worker, project, organization, registration, and scopes.

Request Body

application/json
  1. body
orgId*string
Length1 <= length <= 256
sessionId*string
Length1 <= length <= 256
hostId*string
Length1 <= length <= 256
shimId*string
Length1 <= length <= 256
processEpoch*string
Match^(0|[1-9][0-9]*)$
controllerId*string
Length1 <= length <= 256
shimProtocolVersion*integer
Range0 <= value <= 4294967295
currentControllerGeneration*string
Match^(0|[1-9][0-9]*)$
localResumeFrom?string
Match^(0|[1-9][0-9]*)$
lastHostSeq?string
Match^(0|[1-9][0-9]*)$
lastForwardedSeq*string
Match^(0|[1-9][0-9]*)$

Response Body

Carrier takeover or exact adopted-candidate recovery is prepared.

application/json
  1. response
attachUrl*string
Formaturi
token*string
Length1 <= length
expiresAt*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
hostEpoch*string
Match^(0|[1-9][0-9]*)$
carrierEpoch*string
Match^[1-9][0-9]*$
proposedControllerGeneration*string
Match^[1-9][0-9]*$
resolvedBoundary*string
Match^(0|[1-9][0-9]*)$
resolvedResumeFrom*string
Match^[1-9][0-9]*$
extensions*
handoffNonce*string
Match^[A-Za-z0-9_-]{43}$
preparedCorrelation*string
Length1 <= length
idempotentReplay*boolean
Example Request
curl -X POST 'https://app.rensei.ai/api/daemon/session-shim/adoptions/prepare' \  -H 'Content-Type: application/json' \  -d '{  "orgId": "string",  "sessionId": "string",  "hostId": "string",  "shimId": "string",  "processEpoch": "string",  "controllerId": "string",  "shimProtocolVersion": 0,  "currentControllerGeneration": "string",  "lastForwardedSeq": "string"}'
Example Response
{  "attachUrl": "http://example.com",  "token": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "hostEpoch": "string",  "carrierEpoch": "string",  "proposedControllerGeneration": "string",  "resolvedBoundary": "string",  "resolvedResumeFrom": "string",  "extensions": {    "required": [      "carrier_epoch"    ],    "values": {      "carrier_epoch": "string"    }  },  "handoffNonce": "string",  "preparedCorrelation": "string",  "idempotentReplay": true}