# Add the jobs a LinkedIn search in the user's browser found as Matches

Files jobs the user's own browser read from their own LinkedIn job search, for one ticked Target of the run, as Matches of that run. Only a run that is searching with its browser half pending (started with readLinkedIn from Discover, LinkedIn not left out) takes them; any other run answers CONFLICT and stores nothing. An accepted report, even with no jobs, counts as a sign of life: a run waiting only on the browser is ended as stopped after 5 minutes without one. Only a https://www.linkedin.com/jobs/view/<id> link is accepted, and anything else is refused with BAD_REQUEST. A job dated outside the run's posted-within window is left out; one with no readable date is kept. A job the run already has, one the workspace added or dismissed before, or one it already has an Application for (by link, or by company, title and place) is left out, and so is any job past the Target's or the run's limit of Matches. HireSweep never requests LinkedIn: it only receives what the browser read. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/discovery/runs/{id}/browser-matches
x-api-key: YOUR_API_KEY
```

## Parameters

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

## Request body

```json
{
  "type": "object",
  "properties": {
    "clientId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "The client whose data this is, for an operator applying on behalf of clients. Omit for your own."
    },
    "targetTitle": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "The title of the run's ticked Target the LinkedIn search was read for."
    },
    "jobs": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The job's LinkedIn link, https://www.linkedin.com/jobs/view/<id>. Any other link is refused."
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "The job's title, as its card shows it."
          },
          "company": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "description": "The company, or null when the card does not say."
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "description": "The place, or null when the card does not say."
          },
          "postedAt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "description": "The date the card shows, YYYY-MM-DD. Held to the run's posted-within filter. Left out, unreadable or in the future: the job is treated as undated and kept."
          }
        },
        "required": [
          "url",
          "title"
        ]
      },
      "description": "The jobs the user's own LinkedIn search showed, in the order it showed them."
    }
  },
  "required": [
    "targetTitle",
    "jobs"
  ]
}
```

## Responses

- `200`: How many jobs became Matches, and how many were left out and why.
