> ## 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.

# create Approval Callback • TypeScript AI Agent SDK

> createApprovalCallback: API reference for createApprovalCallback

# createApprovalCallback

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**planning**](../modules/planning) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def createApprovalCallback(config?: ApprovalCallbackConfig) -> ApprovalCallback
```

### Returns

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

## Uses

* `ApprovalCallback`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/planning/index.ts#L215">
  `src/planning/index.ts` at line 215
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Approval" icon="check" href="/docs/js/approval" />

  <Card title="JS Callbacks" icon="phone" href="/docs/js/callbacks" />
</CardGroup>
