# createInputResponse

```graphql
mutation CreateInputResponse($command: RunsCreateInputResponseCommand!) {
  createInputResponse(command: $command) {
    inputRequestId
    projectId
    runId
    kind
    responderRules {
      excludeRunStarters
      requiredCapability
      stepUpSeconds
      excludedUserIds
    }
    toolCall {
      name
      arguments
    }
    delivery
    title
    fields
    status
    requestedResponderType
    response
    createdAt
    expiresAt
    resolvedAt
    toolCallId
    conversationId
    description
    metadata
    canRespond
  }
}
```

Respond to input request.

## Arguments

| Name                     | Type                                 | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------ | ------------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `command`                | RunsCreateInputResponseCommand!      | Yes      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `command.inputRequestId` | ID!                                  | Yes      | 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. |
| `command.input`          | RunsCreateInputResponseCommandInput! | Yes      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `idempotencyKey`         | String                               |          | Retry key for this mutation (1–128 characters); overrides Idempotency-Key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

## Variables

```json
{
  "command": {
    "inputRequestId": "string",
    "input": {
      "values": {}
    }
  }
}
```

## Responses

| Status | Description                                        |
| ------ | -------------------------------------------------- |
| 200    | The RunsInputRequest! in data.createInputResponse. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CreateInputResponse($command: RunsCreateInputResponseCommand!) {\n  createInputResponse(command: $command) {\n    inputRequestId\n    projectId\n    runId\n    kind\n    responderRules {\n      excludeRunStarters\n      requiredCapability\n      stepUpSeconds\n      excludedUserIds\n    }\n    toolCall {\n      name\n      arguments\n    }\n    delivery\n    title\n    fields\n    status\n    requestedResponderType\n    response\n    createdAt\n    expiresAt\n    resolvedAt\n    toolCallId\n    conversationId\n    description\n    metadata\n    canRespond\n  }\n}",
  "variables": {
    "command": {
      "inputRequestId": "string",
      "input": {
        "values": {}
      }
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "createInputResponse": {
      "inputRequestId": "string",
      "projectId": "string",
      "runId": "string",
      "kind": "string",
      "responderRules": {
        "excludeRunStarters": false,
        "requiredCapability": "string",
        "stepUpSeconds": 0,
        "excludedUserIds": [
          "string"
        ]
      },
      "toolCall": {
        "name": "string",
        "arguments": {}
      },
      "delivery": "string",
      "title": "string",
      "fields": [
        {}
      ],
      "status": "string",
      "requestedResponderType": "string",
      "response": {},
      "createdAt": "string",
      "expiresAt": "string",
      "resolvedAt": "string",
      "toolCallId": "string",
      "conversationId": "string",
      "description": "string",
      "metadata": {},
      "canRespond": false
    }
  }
}
```
