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

# Get Profile • AI Agent SDK

> get_profile: Get a profile by name.

# get\_profile

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

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

Get a profile by name.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_profile(name: str) -> Optional[AuthProfile]
```

## Parameters

<ParamField query="name" type="str" required={true}>
  Profile name
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[AuthProfile]">
  The profile or None if not found
</ResponseField>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agent Profiles" icon="id-card" href="/docs/features/agent-profiles" />

  <Card title="Profiling" icon="chart-line" href="/docs/features/profiling" />
</CardGroup>
