# Click or type in the browser of a run waiting on a captcha

Hands the user's clicks, pointer moves and keys to the browser of a run that stopped at a captcha only they can solve, as they work it in the live view. Only while the run waits on it. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/applications/{id}/attempts/{attemptId}/captcha/input
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |
| `attemptId` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "minItems": 1,
      "maxItems": 40,
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "input_mouse"
              },
              "eventType": {
                "enum": [
                  "mousePressed",
                  "mouseReleased",
                  "mouseMoved",
                  "mouseWheel"
                ],
                "type": "string"
              },
              "x": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "y": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "button": {
                "enum": [
                  "none",
                  "left",
                  "middle",
                  "right"
                ],
                "type": "string"
              },
              "clickCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 3
              },
              "modifiers": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15
              },
              "deltaX": {
                "type": "number",
                "minimum": -5000,
                "maximum": 5000
              },
              "deltaY": {
                "type": "number",
                "minimum": -5000,
                "maximum": 5000
              }
            },
            "required": [
              "type",
              "eventType",
              "x",
              "y"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "input_keyboard"
              },
              "eventType": {
                "enum": [
                  "keyDown",
                  "keyUp",
                  "char"
                ],
                "type": "string"
              },
              "key": {
                "type": "string",
                "maxLength": 32
              },
              "code": {
                "type": "string",
                "maxLength": 32
              },
              "text": {
                "type": "string",
                "maxLength": 4
              },
              "windowsVirtualKeyCode": {
                "type": "integer",
                "minimum": 0,
                "maximum": 255
              },
              "modifiers": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15
              }
            },
            "required": [
              "type",
              "eventType",
              "key"
            ]
          }
        ]
      },
      "description": "Clicks, pointer moves and keys for the run's browser, in viewport pixels of its last frame."
    }
  },
  "required": [
    "events"
  ]
}
```

## Responses

- `200`: How many events were handed on.
