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

# Validate Target • AI Agent SDK

> validate_target: Pre-flight ``target`` against the live channel/route registry.

# validate\_target

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

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

Pre-flight `target` against the live channel/route registry.

Called at *creation* time (when a scheduled/agent-initiated send is
registered) so an unroutable target is rejected or warned on with an
actionable message, instead of being silently dropped when the job
fires.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def validate_target(target: 'DeliveryTarget') -> 'DeliveryValidation'
```

## Parameters

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

### Returns

<ResponseField name="Returns" type="'DeliveryValidation'">
  class:`DeliveryValidation` (`ok` / `reason` / `hint` /
  `preview`).
</ResponseField>

## Source

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