# 🧑‍💻 API for Software Developers

Vibehut is as good as the community and builders that surround it. Builders deserve the best tools to build with. We've made a REST API for all of the major aspects of Vibehut.\
\
We hope you use the API to build fantastic extensions and applications. Please reach out if you have any questions or ways we can help you further.\
\
\
**Get API Key**\
\
Profile (Bottom left) -> Account Settings -> API\
\
**Your First API Call**

```javascript
const axios = require('axios');

const apiKey = [API KEY];
const url = 'https://vibehut.io/api/v1/public/events'; 
// or any endpont of your choosing!

const headers = {
  'api-key': `${apiKey}`
};

axios.get(url, { params, headers })
  .then(response => {
    console.log(JSON.stringify(response.data.data[0]));
  })
  .catch(error => {
    console.error(error);
  });
```

**Github Repository**\
<https://github.com/Vibehut/vibehut-api>\
\
**Endpoint Documentation** \
<https://vibehut.notion.site/Vibehut-V1-Api-6f005655867747228cd5fef603f2ca45?pvs=4>


---

# 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.vibehut.io/major-features-of-vibehut/api-for-software-developers.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.
