# Cancel a fill run in the user's browser

Hands back the credits a fill run held, when the user cancels it in HireSweep, including a run whose Submit the site did not take (a captcha, errors it listed). The 1 credit the run took when it started stays spent. A run whose form the site took, or whose Submit is under way, stays charged and the request fails with CONFLICT. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/applications/{applicationId}/fill/agent/cancel
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `applicationId` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "runId": {
      "type": "string",
      "minLength": 1,
      "description": "The ID of the run: the first message of its conversation."
    }
  },
  "required": [
    "runId"
  ]
}
```

## Responses

- `200`: The credits the run held, if any, are handed back; the run's own credit stays spent.
