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

# API Usage

API Usage for Atlas Captcha

## Captcha Player

```java
// The player we want to captcha
Player player = Bukkit.getPlayer("ElapsedDev");

// Captcha the player
CaptchaAPI.getInstance().captcha(player);
```

## Captcha Status

```java
// The player we want to captcha
Player player = Bukkit.getPlayer("ElapsedDev");

// Returns if the player has completed the captcha
CaptchaAPI.getInstance().isCaptchaCompleted(player);

// Returns if the player is an alt
CaptchaAPI.getInstance().isAlt(player);

// Returns if the player is completing the captcha
CaptchaAPI.getInstance().isInCaptcha(player);

// Complete the captcha of a player
CaptchaAPI.getInstance().completedCaptcha(player);
```
