curl -X GET 'https://api.weir.ai/org/talent/name/search?search=John' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"results": [
{
"talentId": "talent_123456789",
"fullname": "John Athlete",
"email": "[email protected]",
"status": "active",
"licenseCount": 5
}
],
"total": 1
},
"message": "Search completed successfully",
"status": "success"
}
Search for talent in your agency roster
curl -X GET 'https://api.weir.ai/org/talent/name/search?search=John' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"results": [
{
"talentId": "talent_123456789",
"fullname": "John Athlete",
"email": "[email protected]",
"status": "active",
"licenseCount": 5
}
],
"total": 1
},
"message": "Search completed successfully",
"status": "success"
}
curl -X GET 'https://api.weir.ai/org/talent/name/search?search=John' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"results": [
{
"talentId": "talent_123456789",
"fullname": "John Athlete",
"email": "[email protected]",
"status": "active",
"licenseCount": 5
}
],
"total": 1
},
"message": "Search completed successfully",
"status": "success"
}
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();
};
Was this page helpful?