http
POST /runs/{run_id}/input-requestsCreate an input request.
Servers
JSON
[ { "url": "https://api.veryfront.com" }]Authentication
JSON
[ { "bearerAuth": [] }, { "apiKeyAuth": [] }, { "runExecutionAuth": [] }]JSON
{ "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT or API Key", "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header." }, "apiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-API-Key", "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens." }, "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": "Run that owns the input request. A fresh creation request without a recorded waiting tool call or tool_call_id, or with a duplicate open run/tool-call request, returns 409. An authorized retry of the identical request with the same idempotency key returns its stored result." }, "required": true, "description": "Run that owns the input request. A fresh creation request without a recorded waiting tool call or tool_call_id, or with a duplicate open run/tool-call request, returns 409. An authorized retry of the identical request with the same idempotency key returns its stored result.", "example": "11111111-1111-4111-8111-111111111111", "name": "run_id", "in": "path" }, { "schema": { "type": "string", "minLength": 1, "maxLength": 128 }, "required": true, "name": "Idempotency-Key", "in": "header" }]Request body
JSON
{ "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateInputRequestRequest" }, "examples": { "minimal": { "summary": "Request a decision", "value": { "title": "Approve the result", "fields": [ { "name": "approved", "type": "confirm" } ] } }, "approval": { "summary": "Request approval", "value": { "tool_call_id": "call_example", "requested_responder_type": "human", "title": "Approve the result", "fields": [ { "name": "approved", "type": "confirm", "label": "Approve the result?", "required": true } ] } } } } }}Responses
201
Input request created or idempotently replayed
JSON
{ "description": "Input request created or idempotently replayed", "headers": { "Location": { "schema": { "type": "string", "format": "uri-reference" }, "description": "Canonical input request URL." } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InputRequest" }, "examples": { "minimal": { "summary": "Request a decision", "value": { "input_request_id": "00000000-0000-4000-8000-000000000001", "project_id": "00000000-0000-4000-8000-000000000001", "run_id": "11111111-1111-4111-8111-111111111111", "kind": "form", "delivery": "tool_result", "title": "Approve the result", "fields": [ { "required": false, "name": "approved", "type": "confirm" } ], "status": "open", "requested_responder_type": "human", "response": null, "created_at": "2026-10-02T10:00:00Z" } }, "approval": { "summary": "Request approval", "value": { "input_request_id": "00000000-0000-4000-8000-000000000001", "project_id": "00000000-0000-4000-8000-000000000001", "run_id": "11111111-1111-4111-8111-111111111111", "kind": "form", "delivery": "tool_result", "title": "Approve the result", "fields": [ { "required": true, "name": "approved", "type": "confirm", "label": "Approve the result?" } ], "status": "open", "requested_responder_type": "human", "response": null, "created_at": "2026-10-02T10:00:00Z", "tool_call_id": "call_example" } } } } }}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 } } } ] } } }}413
Payload too large
JSON
{ "description": "Payload too large", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 413 } } } ] } } }}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/CreateInputRequestRequest
JSON
{ "type": "object", "properties": { "kind": { "type": "string", "enum": [ "form" ], "default": "form", "description": "How the request is presented. `form` collects `fields`." }, "responder_rules": { "$ref": "#/components/schemas/CreateInputRequestResponderRules" }, "tool_call": { "allOf": [ { "$ref": "#/components/schemas/InputRequestToolCall" }, { "description": "The tool call the request is about, shown to the responder.", "x-ref-description": "The tool call the request is about, shown to the responder." } ] }, "delivery": { "type": "string", "enum": [ "tool_result", "none" ], "default": "tool_result", "description": "`tool_result` hands the answer to the waiting tool call. `none` leaves the runtime to read the request." }, "title": { "type": "string", "minLength": 1, "maxLength": 1000 }, "fields": { "type": "array", "items": { "$ref": "#/components/schemas/InputRequestField" }, "minItems": 1, "maxItems": 100 }, "tool_call_id": { "type": "string", "minLength": 1, "maxLength": 128, "description": "Tool invocation to request input for. Defaults to the run’s current waiting invocation." }, "requested_responder_type": { "type": "string", "enum": [ "human", "agent", "system" ], "default": "human" }, "description": { "type": "string", "maxLength": 20000 }, "expires_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "additionalProperties": { "description": "A JSON value." } } }, "required": [ "title", "fields" ], "additionalProperties": false}components/schemas/CreateInputRequestResponderRules
JSON
{ "type": "object", "properties": { "exclude_run_starters": { "type": "boolean", "description": "Nobody who started the run may answer. The run starters may withdraw the request instead." }, "required_capability": { "type": "string", "enum": [ "project.approvals.decide" ], "description": "Project capability the responder must hold." }, "step_up_seconds": { "type": "integer", "exclusiveMinimum": 0, "maximum": 86400, "description": "The responder must have signed in within this many seconds." } }, "additionalProperties": false, "description": "Who may answer. Requires a human responder; the server resolves the run starters.", "x-ref-description": "Who may answer. Requires a human responder; the server resolves the run starters."}components/schemas/InputRequestToolCall
JSON
{ "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 128, "description": "Tool the agent wants to run." }, "arguments": { "type": "object", "additionalProperties": { "description": "A JSON value." }, "description": "Arguments of that exact call." } }, "required": [ "name", "arguments" ], "additionalProperties": false, "description": "The tool call the request is about.", "x-ref-description": "The tool call the request is about."}components/schemas/InputRequestField
JSON
{ "anyOf": [ { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 128 }, "label": { "type": "string", "maxLength": 1000 }, "description": { "type": "string", "maxLength": 4000 }, "required": { "type": "boolean", "default": false }, "type": { "type": "string", "enum": [ "password" ] } }, "required": [ "name", "type" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 128 }, "label": { "type": "string", "maxLength": 1000 }, "description": { "type": "string", "maxLength": 4000 }, "required": { "type": "boolean", "default": false }, "type": { "type": "string", "enum": [ "text", "textarea", "email", "url" ] }, "default": { "type": "string" } }, "required": [ "name", "type" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 128 }, "label": { "type": "string", "maxLength": 1000 }, "description": { "type": "string", "maxLength": 4000 }, "required": { "type": "boolean", "default": false }, "type": { "type": "string", "enum": [ "number" ] }, "default": { "type": "number" } }, "required": [ "name", "type" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 128 }, "label": { "type": "string", "maxLength": 1000 }, "description": { "type": "string", "maxLength": 4000 }, "required": { "type": "boolean", "default": false }, "type": { "type": "string", "enum": [ "checkbox", "confirm" ] }, "default": { "type": "boolean" } }, "required": [ "name", "type" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 128 }, "label": { "type": "string", "maxLength": 1000 }, "description": { "type": "string", "maxLength": 4000 }, "required": { "type": "boolean", "default": false }, "type": { "type": "string", "enum": [ "select", "radio" ] }, "options": { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "recommended": { "type": "boolean" } }, "required": [ "value", "label" ], "additionalProperties": false }, "minItems": 1, "maxItems": 100 }, "default": { "type": "string" } }, "required": [ "name", "type", "options" ], "additionalProperties": false } ]}components/schemas/InputRequest
JSON
{ "type": "object", "properties": { "input_request_id": { "type": "string", "format": "uuid", "description": "Unique input request ID." }, "project_id": { "type": "string", "format": "uuid", "description": "Project inherited from the run." }, "run_id": { "type": "string", "format": "uuid", "description": "Run waiting for this input." }, "kind": { "type": "string", "enum": [ "form" ], "description": "How the request is presented. `form` collects `fields`." }, "responder_rules": { "$ref": "#/components/schemas/InputRequestResponderRules" }, "tool_call": { "$ref": "#/components/schemas/InputRequestToolCall" }, "delivery": { "type": "string", "enum": [ "tool_result", "none" ], "description": "`tool_result` hands the answer to the waiting tool call. `none` leaves the runtime to read the request." }, "title": { "type": "string", "minLength": 1, "maxLength": 1000, "description": "Question or decision shown to the responder." }, "fields": { "type": "array", "items": { "$ref": "#/components/schemas/InputRequestField" }, "description": "Fields the responder can fill in." }, "status": { "type": "string", "enum": [ "open", "submitted", "cancelled", "expired" ], "description": "Current resolution state." }, "requested_responder_type": { "type": "string", "enum": [ "human", "agent", "system" ], "description": "Required responder role; the authenticated actor identifies who actually responded." }, "response": { "anyOf": [ { "$ref": "#/components/schemas/InputResponse" }, { "type": "null" }, { "type": "null" } ], "description": "Submitted response, or null before submission or after cancellation or expiry." }, "created_at": { "type": "string", "format": "date-time", "description": "When the request was created." }, "expires_at": { "type": "string", "format": "date-time", "description": "When the request expires." }, "resolved_at": { "type": "string", "format": "date-time", "description": "When the request was submitted, cancelled or expired." }, "tool_call_id": { "type": "string", "minLength": 1, "maxLength": 128, "description": "Tool invocation waiting for the response." }, "conversation_id": { "type": "string", "format": "uuid", "description": "Conversation inherited from the run." }, "description": { "type": "string", "description": "Additional instructions for the responder." }, "metadata": { "type": "object", "additionalProperties": { "description": "A JSON value." }, "description": "Additional resource metadata." }, "can_respond": { "type": "boolean", "description": "On reads: whether the caller may answer this open request, now or after signing in again. A run that ends meanwhile can still refuse the answer." } }, "required": [ "input_request_id", "project_id", "run_id", "kind", "delivery", "title", "fields", "status", "requested_responder_type", "response", "created_at" ], "allOf": [ { "if": { "properties": { "status": { "enum": [ "submitted" ] } }, "required": [ "status" ] }, "then": { "properties": { "response": { "type": "object" } } }, "else": { "properties": { "response": { "type": "null" } } } }, { "if": { "properties": { "status": { "enum": [ "open" ] } }, "required": [ "status" ] }, "then": { "not": { "required": [ "resolved_at" ] } }, "else": { "required": [ "resolved_at" ] } } ]}components/schemas/InputRequestResponderRules
JSON
{ "type": "object", "properties": { "exclude_run_starters": { "type": "boolean", "description": "Nobody who started the run may answer. The run starters may withdraw the request instead." }, "required_capability": { "type": "string", "enum": [ "project.approvals.decide" ], "description": "Project capability the responder must hold." }, "step_up_seconds": { "type": "integer", "exclusiveMinimum": 0, "maximum": 86400, "description": "The responder must have signed in within this many seconds." }, "excluded_user_ids": { "type": "array", "items": { "type": "string" }, "description": "Users the server excluded from answering." } }, "required": [ "excluded_user_ids" ], "description": "Who may answer. Absent: the run’s own access rules.", "x-ref-description": "Who may answer. Absent: the run’s own access rules."}components/schemas/InputResponse
JSON
{ "type": "object", "properties": { "response_id": { "type": "string", "format": "uuid", "description": "Unique response ID." }, "values": { "$ref": "#/components/schemas/InputValues" }, "actor": { "anyOf": [ { "$ref": "#/components/schemas/Actor" }, { "$ref": "#/components/schemas/UnavailableActor" } ], "description": "Authenticated principal that submitted the response, or `unavailable` for a historical response without authoritative provenance." }, "redacted_fields": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "description": "Names of submitted secret fields omitted from values." }, "created_at": { "type": "string", "format": "date-time", "description": "When the response was submitted." } }, "required": [ "response_id", "values", "actor", "created_at" ]}components/schemas/InputValues
JSON
{ "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "null" } ] }, "description": "Submitted values keyed by field name; password values are omitted from reads.", "x-ref-description": "Submitted values keyed by field name; password values are omitted from reads."}components/schemas/Actor
JSON
{ "type": "object", "properties": { "type": { "type": "string", "enum": [ "user", "api_key", "service_account", "system" ] }, "id": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": [ "type", "id" ], "description": "Immediate authenticated initiator, recorded by the server; execution credentials identify their issuing service account, not the original caller."}components/schemas/UnavailableActor
JSON
{ "type": "object", "properties": { "type": { "type": "string", "enum": [ "unavailable" ] }, "reason": { "type": "string", "enum": [ "not_recorded", "identity_removed" ], "description": "`not_recorded`: the server never stored the submitting credential. `identity_removed`: the recorded identity was later revoked or deleted." }, "legacy_role": { "type": "string", "enum": [ "human", "agent", "integration", "system", "user", "api_key", "service_account" ], "description": "Role tag stored with the response. It is not an authenticated actor type." }, "legacy_id": { "type": "string", "minLength": 1, "maxLength": 255, "description": "Actor ID stored with the response. It is not promoted to an authenticated actor." } }, "required": [ "type", "reason" ], "additionalProperties": false, "description": "A historical response without authoritative submitting-credential provenance. The server never infers or looks up a replacement actor."}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": "createRunInputRequest", "tags": [ "execution/Runs/Run Input Requests" ], "security": [ { "bearerAuth": [] }, { "apiKeyAuth": [] }, { "runExecutionAuth": [] } ], "summary": "Create input request", "description": "Create an input request.", "parameters": [ { "schema": { "type": "string", "format": "uuid", "description": "Run that owns the input request. A fresh creation request without a recorded waiting tool call or tool_call_id, or with a duplicate open run/tool-call request, returns 409. An authorized retry of the identical request with the same idempotency key returns its stored result." }, "required": true, "description": "Run that owns the input request. A fresh creation request without a recorded waiting tool call or tool_call_id, or with a duplicate open run/tool-call request, returns 409. An authorized retry of the identical request with the same idempotency key returns its stored result.", "example": "11111111-1111-4111-8111-111111111111", "name": "run_id", "in": "path" }, { "schema": { "type": "string", "minLength": 1, "maxLength": 128 }, "required": true, "name": "Idempotency-Key", "in": "header" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateInputRequestRequest" }, "examples": { "minimal": { "summary": "Request a decision", "value": { "title": "Approve the result", "fields": [ { "name": "approved", "type": "confirm" } ] } }, "approval": { "summary": "Request approval", "value": { "tool_call_id": "call_example", "requested_responder_type": "human", "title": "Approve the result", "fields": [ { "name": "approved", "type": "confirm", "label": "Approve the result?", "required": true } ] } } } } } }, "responses": { "201": { "description": "Input request created or idempotently replayed", "headers": { "Location": { "schema": { "type": "string", "format": "uri-reference" }, "description": "Canonical input request URL." } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InputRequest" }, "examples": { "minimal": { "summary": "Request a decision", "value": { "input_request_id": "00000000-0000-4000-8000-000000000001", "project_id": "00000000-0000-4000-8000-000000000001", "run_id": "11111111-1111-4111-8111-111111111111", "kind": "form", "delivery": "tool_result", "title": "Approve the result", "fields": [ { "required": false, "name": "approved", "type": "confirm" } ], "status": "open", "requested_responder_type": "human", "response": null, "created_at": "2026-10-02T10:00:00Z" } }, "approval": { "summary": "Request approval", "value": { "input_request_id": "00000000-0000-4000-8000-000000000001", "project_id": "00000000-0000-4000-8000-000000000001", "run_id": "11111111-1111-4111-8111-111111111111", "kind": "form", "delivery": "tool_result", "title": "Approve the result", "fields": [ { "required": true, "name": "approved", "type": "confirm", "label": "Approve the result?" } ], "status": "open", "requested_responder_type": "human", "response": null, "created_at": "2026-10-02T10:00:00Z", "tool_call_id": "call_example" } } } } } }, "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 } } } ] } } } }, "413": { "description": "Payload too large", "content": { "application/problem+json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/TargetRunProblem" }, { "properties": { "status": { "const": 413 } } } ] } } } }, "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-codeSamples": [ { "lang": "json", "label": "Request JSON", "example": "minimal", "contentType": "application/json", "source": "{\n \"title\": \"Approve the result\",\n \"fields\": [\n {\n \"name\": \"approved\",\n \"type\": \"confirm\"\n }\n ]\n}" }, { "lang": "json", "label": "Request JSON", "example": "approval", "contentType": "application/json", "source": "{\n \"tool_call_id\": \"call_example\",\n \"requested_responder_type\": \"human\",\n \"title\": \"Approve the result\",\n \"fields\": [\n {\n \"name\": \"approved\",\n \"type\": \"confirm\",\n \"label\": \"Approve the result?\",\n \"required\": true\n }\n ]\n}" } ], "x-documentation-source-tag": "Run input request", "x-canonical-documentation": { "domain": "execution", "resource": "Runs", "subgroup": "Run Input Requests", "name": "Create input request", "description": "Create an input request.", "operationId": "createRunInputRequest" }, "x-mint": { "href": "/cloud/rest/api-reference/execution-runs-run-input-requests/create-input-request" }}