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

# Search Agency Talent

> Search for talent in your agency roster

# Search Agency Talent

Search for talent in your agency roster by name.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://api.weir.ai/org/talent/name/search?search=John' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'x-source: console'
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "data": {
      "results": [
        {
          "talentId": "talent_123456789",
          "fullname": "John Athlete",
          "email": "john@athlete.com",
          "status": "active",
          "licenseCount": 5
        }
      ],
      "total": 1
    },
    "message": "Search completed successfully",
    "status": "success"
  }
  ```
</ResponseExample>

## Query Parameters

<ParamField query="search" type="string" required>
  Search term to match against talent names.
</ParamField>

## Usage Examples

<CodeGroup>
  ```javascript JavaScript theme={null}
  const searchTalent = async (searchTerm, accessToken) => {
    const response = await fetch(`https://api.weir.ai/org/talent/name/search?search=${encodeURIComponent(searchTerm)}`, {
      headers: {
        'Authorization': `Bearer ${accessToken}`,
        'x-source': 'console'
      }
    });
    if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
    return await response.json();
  };
  ```

  ```python Python theme={null}
  import requests

  def search_talent(search_term, access_token):
      response = requests.get(
          f'https://api.weir.ai/org/talent/name/search',
          params={'search': search_term},
          headers={
              'Authorization': f'Bearer {access_token}',
              'x-source': 'console'
          }
      )
      response.raise_for_status()
      return response.json()
  ```
</CodeGroup>
