http
POST /runs/{run_id}/event-tokensIssue a nondelegating event-writer credential for a direct child run.
Servers
JSON
[ { "url": "https://api.veryfront.com" }]Authentication
JSON
[ { "runExecutionAuth": [] }]JSON
{ "runExecutionAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT", "description": "Server-issued credential bound to project, run, registered runtime, execution generation, audience, expiry, and explicitly allowed operations; user/API-key editor access is insufficient." }}Parameters
Parameter contracts
JSON
[ { "schema": { "type": "string", "format": "uuid", "description": "Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation or executor lease. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run. Modern tokens cannot mint event tokens. Tokens issued under an execution or worker generation retain that generation. For executor-lease-only parent credentials, the lease is checked at issuance; the child token does not retain executorLeaseOwner. Only the retained legacy route preserves nested delegation for delegating generation-bound credentials. It cannot read events, finalize, heartbeat or create children." }, "required": true, "description": "Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation or executor lease. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run. Modern tokens cannot mint event tokens. Tokens issued under an execution or worker generation retain that generation. For executor-lease-only parent credentials, the lease is checked at issuance; the child token does not retain executorLeaseOwner. Only the retained legacy route preserves nested delegation for delegating generation-bound credentials. It cannot read events, finalize, heartbeat or create children.", "example": "11111111-1111-4111-8111-111111111111", "name": "run_id", "in": "path" }]Responses
201
Scoped event token created. A signed event writer token must be bound to the addressed run.
JSON
{ "description": "Scoped event token created. A signed event writer token must be bound to the addressed run.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunEventToken" }, "examples": { "example": { "summary": "Example response", "value": { "token": "example-token", "token_type": "Bearer", "expires_at": "2026-10-02T10:05:00Z", "run_id": "11111111-1111-4111-8111-111111111111", "permissions": [ "run.events.append" ] } } } } }}400
Bad request
JSON
{ "description": "Bad request", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 400 } } } ] } } }}401
Unauthorized
JSON
{ "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 401 } } } ] } } }}403
Forbidden
JSON
{ "description": "Forbidden", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 403 } } } ] } } }}404
Not found
JSON
{ "description": "Not found", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 404 } } } ] } } }}409
Conflict
JSON
{ "description": "Conflict", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 409 } } } ] } } }}429
Rate limit exceeded
JSON
{ "description": "Rate limit exceeded", "headers": { "Retry-After": { "schema": { "type": "integer", "format": "int32", "minimum": 1 } } }, "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 429 } } } ] } } }}Referenced contracts
components/schemas/RunEventToken
JSON
{ "type": "object", "properties": { "token": { "type": "string", "minLength": 1 }, "token_type": { "type": "string", "enum": [ "Bearer" ] }, "expires_at": { "type": "string", "format": "date-time" }, "run_id": { "type": "string", "format": "uuid" }, "permissions": { "type": "array", "items": { "type": "string", "enum": [ "run.events.append" ] }, "minItems": 1, "maxItems": 1 } }, "required": [ "token", "token_type", "expires_at", "run_id", "permissions" ], "description": "A short-lived event-append credential for the target child run; never grants finalization, heartbeat, or child creation."}components/schemas/TargetRunProblem
JSON
{ "type": "object", "properties": { "type": { "type": "string", "description": "Problem type URI reference." }, "title": { "type": "string" }, "status": { "type": "integer", "minimum": 400, "maximum": 599, "format": "int64" }, "code": { "type": "string", "minLength": 1, "maxLength": 128 }, "cause": { "type": "string", "enum": [ "schedule_concurrency_forbidden", "schedule_fire_in_progress", "schedule_run_limit_reached" ], "description": "Schedule admission refusal." }, "detail": { "type": "string" }, "instance": { "type": "string" }, "errors": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string" }, "message": { "type": "string" } }, "required": [ "field", "message" ] } } }, "required": [ "type", "title", "status", "code" ]}Operation contract
JSON
{ "operationId": "createRunEventToken", "tags": [ "execution/Runs/Runtime" ], "security": [ { "runExecutionAuth": [] } ], "summary": "Create run event token", "description": "Issue a nondelegating event-writer credential for a direct child run.", "parameters": [ { "schema": { "type": "string", "format": "uuid", "description": "Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation or executor lease. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run. Modern tokens cannot mint event tokens. Tokens issued under an execution or worker generation retain that generation. For executor-lease-only parent credentials, the lease is checked at issuance; the child token does not retain executorLeaseOwner. Only the retained legacy route preserves nested delegation for delegating generation-bound credentials. It cannot read events, finalize, heartbeat or create children." }, "required": true, "description": "Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation or executor lease. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run. Modern tokens cannot mint event tokens. Tokens issued under an execution or worker generation retain that generation. For executor-lease-only parent credentials, the lease is checked at issuance; the child token does not retain executorLeaseOwner. Only the retained legacy route preserves nested delegation for delegating generation-bound credentials. It cannot read events, finalize, heartbeat or create children.", "example": "11111111-1111-4111-8111-111111111111", "name": "run_id", "in": "path" } ], "responses": { "201": { "description": "Scoped event token created. A signed event writer token must be bound to the addressed run.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunEventToken" }, "examples": { "example": { "summary": "Example response", "value": { "token": "example-token", "token_type": "Bearer", "expires_at": "2026-10-02T10:05:00Z", "run_id": "11111111-1111-4111-8111-111111111111", "permissions": [ "run.events.append" ] } } } } } }, "400": { "description": "Bad request", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 400 } } } ] } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 401 } } } ] } } } }, "403": { "description": "Forbidden", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 403 } } } ] } } } }, "404": { "description": "Not found", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 404 } } } ] } } } }, "409": { "description": "Conflict", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 409 } } } ] } } } }, "429": { "description": "Rate limit exceeded", "headers": { "Retry-After": { "schema": { "type": "integer", "format": "int32", "minimum": 1 } } }, "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 429 } } } ] } } } } }, "x-documentation-source-tag": "Runtime", "x-canonical-documentation": { "domain": "execution", "resource": "Runs", "subgroup": "Runtime", "name": "Create run event token", "description": "Issue a nondelegating event-writer credential for a direct child run.", "operationId": "createRunEventToken" }, "x-mint": { "href": "/cloud/rest/api-reference/execution-runs-runtime/create-run-event-token" }}