> For the complete documentation index, see [llms.txt](https://docs.preva1l.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.preva1l.info/fadah/api.md).

# Developer API

## Useful Resources

JavaDocs: <https://repo.preva1l.info/javadoc/releases/info/preva1l/fadah/API/latest>\
Support Server: [https://discord.gg/4KcF7S94HF/](https://discord.gg/4KcF7S94HF)

## Getting Started

To get started with the API you must add it to your Maven / Gradle Project.

Replace LATEST-VERSION with the version found below.

<figure><img src="https://badge.fury.io/gh/Finally-A-Decent%2FFadah.svg" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Maven" %}

```xml
<repositories>
    <repository>
        <id>FinallyADecent</id>
        <url>https://repo.preva1l.info/releases/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>info.preva1l.fadah</groupId>
        <artifactId>API</artifactId>
        <version>LATEST-VERSION</version>
        <scope>provided</scope>
    </dependency>
</dependencies>
```

{% endtab %}

{% tab title="Gradle (Groovy)" %}

```gradle
repositories {
    maven { url 'https://repo.preva1l.info/releases' }
}

dependencies {
    compileOnly 'info.preva1l.fadah:API:LATEST-VERSION'
}
```

{% endtab %}

{% tab title="Gradle (Kotlin)" %}

```gradle
repositories {
    maven("https://repo.preva1l.info/releases/")
}

dependencies {
    compileOnly("info.preva1l.fadah:API:LATEST-VERSION")
}
```

{% endtab %}
{% endtabs %}

### Depending on Fadah

{% code title="plugin.yml" %}

```yaml
name: "FadahAPIExample"
version: "1.0"
api-version: "1.20"
main: me.developer.FadahAPIExample

depend:
  - "Fadah"
```

{% endcode %}

## Next Steps

{% content-ref url="/pages/vHE0rYhF0nFFYauMQ2nr" %}
[Accessing & Using Data](/fadah/api/accessing-data.md)
{% endcontent-ref %}

{% content-ref url="/pages/up0TGI4PoVLSJ9kj3YH3" %}
[Events](/fadah/api/events.md)
{% endcontent-ref %}

{% content-ref url="/pages/99HdntY8Gb1O4aZPO0zD" %}
[Adding a Economy Hook](/fadah/api/economy.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.preva1l.info/fadah/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
