Respond to input request

http
POST /input-requests/{input_request_id}/responses

Respond to input request.

Servers

JSON
[  {    "url": "https://api.veryfront.com"  }]

Authentication

JSON
[  {    "bearerAuth": []  },  {    "apiKeyAuth": []  }]
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."  }}

Parameters

NameLocationRequiredDescription
input_request_idpathYesInput request to answer. Every caller must match the requested responder role. Unbound callers need editor access to the run owner and project.runs.write. A bound runtime credential instead must match the exact run and needs conversations:write, viewer access to the run owner, and project.runs.read. A linked conversation also requires editor access. A fresh response to an already-resolved request returns 409 (submission, cancellation and expiry compete atomically). An authorized retry of the identical request with the same idempotency key returns its stored result.
Idempotency-KeyheaderYes

Parameter contracts

JSON
[  {    "schema": {      "type": "string",      "format": "uuid",      "description": "Input request to answer. Every caller must match the requested responder role. Unbound callers need editor access to the run owner and project.runs.write. A bound runtime credential instead must match the exact run and needs conversations:write, viewer access to the run owner, and project.runs.read. A linked conversation also requires editor access. A fresh response to an already-resolved request returns 409 (submission, cancellation and expiry compete atomically). An authorized retry of the identical request with the same idempotency key returns its stored result."    },    "required": true,    "description": "Input request to answer. Every caller must match the requested responder role. Unbound callers need editor access to the run owner and project.runs.write. A bound runtime credential instead must match the exact run and needs conversations:write, viewer access to the run owner, and project.runs.read. A linked conversation also requires editor access. A fresh response to an already-resolved request returns 409 (submission, cancellation and expiry compete atomically). An authorized retry of the identical request with the same idempotency key returns its stored result.",    "example": "00000000-0000-4000-8000-000000000001",    "name": "input_request_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/RespondToInputRequestRequest"      },      "examples": {        "approval": {          "summary": "Submit approval",          "value": {            "values": {              "approved": true            }          }        }      }    }  }}

Responses

200

InputRequest

JSON
{  "description": "InputRequest",  "content": {    "application/json": {      "schema": {        "$ref": "#/components/schemas/InputRequest"      },      "examples": {        "approval": {          "summary": "Submit 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": [              {                "name": "approved",                "type": "confirm",                "label": "Approve the result?",                "required": true              }            ],            "status": "submitted",            "requested_responder_type": "human",            "response": {              "response_id": "00000000-0000-4000-8000-000000000002",              "values": {                "approved": true              },              "actor": {                "type": "user",                "id": "user_example"              },              "created_at": "2026-10-02T10:00:00Z"            },            "created_at": "2026-10-02T10:00:00Z",            "resolved_at": "2026-10-02T10:00:00Z"          }        }      }    }  }}

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              }            }          }        ]      }    }  }}

503

Service unavailable

JSON
{  "description": "Service unavailable",  "content": {    "application/problem+json": {      "schema": {        "allOf": [          {            "$ref": "#/components/schemas/TargetRunProblem"          },          {            "properties": {              "status": {                "const": 503              }            }          }        ]      }    }  }}

Referenced contracts

components/schemas/RespondToInputRequestRequest

JSON
{  "type": "object",  "properties": {    "values": {      "$ref": "#/components/schemas/InputValues"    }  },  "required": [    "values"  ],  "additionalProperties": false}

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/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/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/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/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": "createInputResponse",  "tags": [    "execution/Runs/Run Input Requests"  ],  "summary": "Respond to input request",  "description": "Respond to input request.",  "parameters": [    {      "schema": {        "type": "string",        "format": "uuid",        "description": "Input request to answer. Every caller must match the requested responder role. Unbound callers need editor access to the run owner and project.runs.write. A bound runtime credential instead must match the exact run and needs conversations:write, viewer access to the run owner, and project.runs.read. A linked conversation also requires editor access. A fresh response to an already-resolved request returns 409 (submission, cancellation and expiry compete atomically). An authorized retry of the identical request with the same idempotency key returns its stored result."      },      "required": true,      "description": "Input request to answer. Every caller must match the requested responder role. Unbound callers need editor access to the run owner and project.runs.write. A bound runtime credential instead must match the exact run and needs conversations:write, viewer access to the run owner, and project.runs.read. A linked conversation also requires editor access. A fresh response to an already-resolved request returns 409 (submission, cancellation and expiry compete atomically). An authorized retry of the identical request with the same idempotency key returns its stored result.",      "example": "00000000-0000-4000-8000-000000000001",      "name": "input_request_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/RespondToInputRequestRequest"        },        "examples": {          "approval": {            "summary": "Submit approval",            "value": {              "values": {                "approved": true              }            }          }        }      }    }  },  "responses": {    "200": {      "description": "InputRequest",      "content": {        "application/json": {          "schema": {            "$ref": "#/components/schemas/InputRequest"          },          "examples": {            "approval": {              "summary": "Submit 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": [                  {                    "name": "approved",                    "type": "confirm",                    "label": "Approve the result?",                    "required": true                  }                ],                "status": "submitted",                "requested_responder_type": "human",                "response": {                  "response_id": "00000000-0000-4000-8000-000000000002",                  "values": {                    "approved": true                  },                  "actor": {                    "type": "user",                    "id": "user_example"                  },                  "created_at": "2026-10-02T10:00:00Z"                },                "created_at": "2026-10-02T10:00:00Z",                "resolved_at": "2026-10-02T10:00:00Z"              }            }          }        }      }    },    "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                  }                }              }            ]          }        }      }    },    "503": {      "description": "Service unavailable",      "content": {        "application/problem+json": {          "schema": {            "allOf": [              {                "$ref": "#/components/schemas/TargetRunProblem"              },              {                "properties": {                  "status": {                    "const": 503                  }                }              }            ]          }        }      }    }  },  "x-codeSamples": [    {      "lang": "json",      "label": "Request JSON",      "example": "approval",      "contentType": "application/json",      "source": "{\n  \"values\": {\n    \"approved\": true\n  }\n}"    }  ],  "x-documentation-source-tag": "Input request",  "x-canonical-documentation": {    "domain": "execution",    "resource": "Runs",    "subgroup": "Run Input Requests",    "name": "Respond to input request",    "description": "Respond to input request.",    "operationId": "createInputResponse"  },  "x-mint": {    "href": "/cloud/rest/api-reference/execution-runs-run-input-requests/respond-to-input-request"  }}