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

# API

The API file is published to Jitpack at: <https://jitpack.io/#anhcraft/Vouchers>\
\
Maven example:

```xml
<repository>
   <id>jitpack.io</id>
   <url>https://jitpack.io</url>
</repository>

<dependency>
   <groupId>com.github.anhcraft</groupId>
   <artifactId>Vouchers</artifactId>
   <version>Tag</version>
</dependency>
```

The API instance can be obtained from `ApiProvider`

```java
VouchersApi api = ApiProvider.getApi();
```

Javadoc is not yet published. You can view it directly from the source: <https://github.com/anhcraft/Vouchers/tree/main/api/src/main/java/dev/anhcraft/vouchers/api>
