# getJobOpening

**Identifier:** `predictleads_getJobOpening`

**Provider:** [PredictLeads](https://kirha.com/providers/predictleads.md)

One job opening by id with its full description text. Use it after a job search to read what a role requires.

## Run it with the CLI

```bash
kirha tools run predictleads_getJobOpening \
  --input '{
    "jobId": "<jobId>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "predictleads_getJobOpening",
  "input": {
    "jobId": "<jobId>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "jobId": {
      "description": "Job opening id returned by a job search",
      "pattern": "^[0-9a-f-]{8,64}$",
      "type": "string"
    }
  },
  "required": [
    "jobId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "categories": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "closed": {
      "type": "boolean"
    },
    "companyDomain": {
      "type": "string"
    },
    "companyName": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "contractTypes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "description": {
      "type": "string"
    },
    "firstSeenOn": {
      "type": "string"
    },
    "jobId": {
      "type": "string"
    },
    "lastSeenOn": {
      "type": "string"
    },
    "location": {
      "type": "string"
    },
    "occupation": {
      "type": "string"
    },
    "onetCode": {
      "type": "string"
    },
    "postedOn": {
      "type": "string"
    },
    "salary": {
      "type": "string"
    },
    "salaryHighUsd": {
      "type": "number"
    },
    "salaryLowUsd": {
      "type": "number"
    },
    "salaryTimeUnit": {
      "type": "string"
    },
    "seniority": {
      "type": "string"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "title": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "jobId",
    "categories",
    "contractTypes",
    "closed",
    "tags"
  ],
  "type": "object"
}
```

-----

[All PredictLeads tools](https://kirha.com/providers/predictleads.md) · [< Back to tools list](https://kirha.com/tools.md)