# Ashby API

> Returns listed jobs of an Ashby job board, full job descriptions, and counts by department, team, location and type.

Category: Jobs & Careers. Region: global. 3 endpoints at `https://api.hoshime.com/v1/ashby/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/ashby
## GET /v1/ashby/jobs

Listed jobs of one Ashby board, without descriptions. Use job for the full text.

Scope: `social:read` · Units: 1 · Cached: 15 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `org` | string | yes | Organization slug, the part of jobs.ashbyhq.com/{org}, such as notion. (e.g. notion) |
| `query` | string | no | Keep jobs whose title, department, team or location contains this text. |
| `limit` | integer | no | Most jobs to return, from 1 to 100. (default 50) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `applyUrl` (string), `company` (string), `department` (string), `employmentType` (string), `id` (string), `location` (string), `postedAt` (string), `remote` (boolean), `salary` (string), `team` (string), `title` (string), `url` (string), `workplaceType` (string)

```bash
curl "https://api.hoshime.com/v1/ashby/jobs?org=notion" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ashby/job

One listed job of an Ashby board, with its description as plain text. Without id it returns the newest listed job.

Scope: `social:read` · Units: 1 · Cached: 30 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `org` | string | yes | Organization slug, such as notion. (e.g. notion) |
| `id` | string | no | Job id from jobs (a UUID). Omit it for the newest listed job. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `applyUrl` (string), `company` (string), `department` (string), `description` (string), `employmentType` (string), `id` (string), `location` (string), `postedAt` (string), `remote` (boolean), `salary` (string), `team` (string), `title` (string), `url` (string), `workplaceType` (string)

```bash
curl "https://api.hoshime.com/v1/ashby/job?org=notion" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ashby/facets

Counts of the listed jobs of one Ashby board by department, team, location, employment type and workplace type.

Scope: `social:read` · Units: 1 · Cached: 15 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `org` | string | yes | Organization slug, such as notion. (e.g. notion) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `departments` (Count[]), `departments[].count` (integer (int64)), `departments[].value` (string), `employmentTypes` (Count[]), `employmentTypes[].count` (integer (int64)), `employmentTypes[].value` (string), `locations` (Count[]), `locations[].count` (integer (int64)), `locations[].value` (string), `teams` (Count[]), `teams[].count` (integer (int64)), `teams[].value` (string), `total` (integer (int64)), `workplaceTypes` (Count[]), `workplaceTypes[].count` (integer (int64)), `workplaceTypes[].value` (string)

```bash
curl "https://api.hoshime.com/v1/ashby/facets?org=notion" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
