Internal

Exchange a headless turn's resume grant for a fresh MCP token

Changed on

For the headless runner only, with Authorization: Bearer $DEN_HEADLESS_RUNNER_CALLBACK_TOKEN. Body { grant, sessionId, messageId }. Exchanges the resume grant Den minted with a turn for a fresh member-scoped MCP token (at most an hour, same read-only setting) for that turn, its background tasks and their reports, while the member is still active. 403 answers are permanent for the grant. Answers 404 when DEN_HEADLESS_RUNNER_CALLBACK_TOKEN is not configured.

post/v1/headless/resume-token

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    HTTP bearer

Response

A fresh MCP token for the turn.

object required
mcpToken, string required
expiresAt, string date-time required
readOnly, boolean required
modelAccess, object

Changes

    • info

      added the optional property modelAccess/headers to the response with the status

    • info

      the expiresAt response's property pattern was changed from ^(?:(?:\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))$ to ^(?:(?:\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))$ for the status