Rensei docs
API ReferenceWorker Protocol

Post completion summary

Posts a completion summary to Linear. Long summaries are split into multiple Linear comments (comment chunking).

POST
/api/sessions/{id}/completion

Authorization

workerJwt
AuthorizationBearer <token>

Runtime JWT minted by the platform at worker registration. Three-segment dotted string. Claims include {jti, proj, org, sub (=workerId), reg, scope[]}. Use on all post-registration worker endpoints.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/sessions/string/completion" \  -H "Content-Type: application/json" \  -d '{    "summary": "string"  }'
{
  "posted": 0,
  "errors": [
    "string"
  ]
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}