> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# load • AI Agent SDK

> load: Load allowlist from JSON file.

# load

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**PermissionAllowlist**](../classes/PermissionAllowlist) class in the [**approval**](../modules/approval) module.

Load allowlist from JSON file.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def load(filepath: str) -> 'PermissionAllowlist'
```

## Parameters

<ParamField query="filepath" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="'PermissionAllowlist'">
  The result of the operation.
</ResponseField>

## Uses

* `cls`
* `exists`
* `json.load`
* `allowlist.add_tool`

## Used By

* [`PermissionAllowlist.load`](../functions/PermissionAllowlist-load)
* [`Knowledge.index`](../functions/Knowledge-index)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/approval.py#L195">
  `praisonaiagents/approval.py` at line 195
</Card>
