curl -X GET 'https://api.weir.ai/org/licenses' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"licenses": [
{
"licenseId": "lic_123456789",
"talentId": "talent_123456789",
"talentName": "John Athlete",
"name": "Social Media Campaign License",
"type": "social_media",
"description": "License for social media campaigns",
"appearanceFee": 5000.00,
"canCrawl": true,
"imageCount": 10,
"status": "active",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"total": 1
},
"message": "Licenses retrieved successfully",
"status": "success"
}
Retrieve talent licenses for your agency
curl -X GET 'https://api.weir.ai/org/licenses' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"licenses": [
{
"licenseId": "lic_123456789",
"talentId": "talent_123456789",
"talentName": "John Athlete",
"name": "Social Media Campaign License",
"type": "social_media",
"description": "License for social media campaigns",
"appearanceFee": 5000.00,
"canCrawl": true,
"imageCount": 10,
"status": "active",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"total": 1
},
"message": "Licenses retrieved successfully",
"status": "success"
}
curl -X GET 'https://api.weir.ai/org/licenses' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"data": {
"licenses": [
{
"licenseId": "lic_123456789",
"talentId": "talent_123456789",
"talentName": "John Athlete",
"name": "Social Media Campaign License",
"type": "social_media",
"description": "License for social media campaigns",
"appearanceFee": 5000.00,
"canCrawl": true,
"imageCount": 10,
"status": "active",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"total": 1
},
"message": "Licenses retrieved successfully",
"status": "success"
}
Show License Properties
const getTalentLicenses = async (accessToken) => {
const response = await fetch('https://api.weir.ai/org/licenses', {
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?