# Get Job Posting — Ashby Job Postings

> Retrieves the full details of one published job posting from the Ashby job board configured for the connected account, including its description and, optionally, its compensation breakdown. The public Job Board API has no single-item…

- Key: `ashby_job_postings_api-get-job-posting`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Ashby Job Postings (`ashby_job_postings_api`) — https://pipedream.com/apps/ashby-job-postings-api.md
- This page (HTML): https://pipedream.com/apps/ashby-job-postings-api/actions/get-job-posting
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/ashby_job_postings_api/actions/get-job-posting/get-job-posting.mjs

## Description

Retrieves the full details of one published job posting from the Ashby job board configured for the connected account, including its description and, optionally, its compensation breakdown. The public Job Board API has no single-item lookup endpoint, so this fetches the full board listing and returns the one posting whose `jobUrl` exactly matches. Use **List Job Postings** first to find the `jobUrl` of the posting you want. [See the documentation](https://developers.ashbyhq.com/docs/public-job-posting-api)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `jobUrl` | `string` | Yes | The exact public URL of one specific job posting, e.g. https://jobs.ashbyhq.com/Ashby/f050b8c1-243f-4841-b47e-e13cd2a49af0. Use List Job Postings to find the jobUrl of the posting you want. |
| `includeCompensation` | `boolean` | No | Set to true to include each posting's compensation object (tier summary and pay range breakdown) in the response. Defaults to false. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "ashby_job_postings_api",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "ashby_job_postings_api-get-job-posting",
  arguments: {
    jobUrl: "Job URL",
    includeCompensation: true,
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "ashby_job_postings_api-get-job-posting",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ashby_job_postings_api: { authProvisionId: "apn_xxxxxxx" },
    jobUrl: "Job URL",
    includeCompensation: true,
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "ashby_job_postings_api-get-job-posting",
    "configured_props": {
      "ashby_job_postings_api": { "authProvisionId": "apn_xxxxxxx" },
      "jobUrl": "Job URL",
      "includeCompensation": true
    }
  }'
```

---

- App: https://pipedream.com/apps/ashby-job-postings-api.md · All apps: https://pipedream.com/apps
