# Record that the browser extension could not read a job

Leaves one line in the server log saying which step of the extension's work was refused and why, so the failure can be counted. Takes only fixed values: no link, no posting text, nothing a page wrote. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/extension/failures
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "stage": {
      "enum": [
        "posting-read",
        "apply-url",
        "job-search"
      ],
      "type": "string",
      "description": "Which step of the extension's work was refused."
    },
    "reason": {
      "enum": [
        "signed-out",
        "easy-apply",
        "not-found",
        "not-linkedin",
        "outdated",
        "unreachable",
        "no-worker",
        "not-allowed",
        "shortlink"
      ],
      "type": "string",
      "description": "Why, from the fixed list of reasons the app names."
    },
    "extensionVersion": {
      "type": "string",
      "maxLength": 16,
      "pattern": "^\\d+\\.\\d+\\.\\d+$",
      "description": "The extension's version, as major.minor.patch."
    }
  },
  "required": [
    "stage",
    "reason"
  ]
}
```

## Responses

- `200`: The report was recorded.
