# LeadAPI
> Static entry point for accessing the Lead API.
`gg.lode.leadapi.LeadAPI`
---
## Signature
```java
public class LeadAPI
```
---
## Methods
### setApi
```java
public static void setApi(ILeadAPI api)
```
Sets the API instance. Called internally by the Lead plugin during initialization.
| Parameter | Type | Description |
|---|---|---|
| `api` | `ILeadAPI` | The API implementation to register. |
---
### getApi
```java
public static ILeadAPI getApi()
```
Returns the current `ILeadAPI` instance.
**Returns:** `ILeadAPI` — The API instance, or `null` if Lead has not loaded yet.
---
## Usage
```java
ILeadAPI api = LeadAPI.getApi();
if (api != null) {
List<ITeam> teams = api.getTeams();
}
```
---
## Related Pages
- [[ILeadAPI]] — The interface returned by `getApi()`