# Work in Progress: How to fetch job offers from Lever’s API

* Add an Option Buttons component
* Create a new computed field
* Add the following code:

```jsx
function result() {
    return fetch(`https://savvy-api-proxy.heysavvy.workers.dev/?url=${encodeURIComponent('<https://api.lever.co/v1/postings>')}`, {
      headers: {
        Authorization: "Basic API KEY" //replace with the API key
      }})
      .then(res => res.json())
      .then(json => {return json.data.filter(job => job.state == "published").map(j => ({ key: j.id, text: j.text, description: j.categories.team, url: j.urls.show, triggerEvent: 'open-url' }))})
  }
```

* Select the Option Buttons and go to More Options
* Open the Advanced dropdown and in the **OPTIONAL - BUTTON REPEATER KEY** select the computed field that fetches the options


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trysavvy.com/other-useful-docs/work-in-progress/pending/work-in-progress-how-to-fetch-job-offers-from-levers-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
