POST
https://api.craftkit.dev/v1/embed/sessions/refreshrenewToken is single-use: each call mints a
fresh session_token, extends expires_at by 4 hours, and returns a new renew_token — the old
one stops working. The response shape is identical to
Create a session.
Authorization
string
required
Bearer ck_live_… — must be an API key from the same project that minted the session.Body
string
required
The
renew_token from the last mint or refresh (min 8 chars).Response
200 with the rotated session (same fields as the mint response).
string
Unchanged — the original session UUID.
string
A freshly signed EdDSA JWT.
string
Builder URL carrying the new token.
string
New ISO-8601 expiry, 4 hours out.
string
New single-use renew token; the previous one is invalidated.
Errors
cURL
200