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"
}
Console APIs - Talent
Get Talent Licenses
Retrieve talent licenses for your agency
GET
/
org
/
licenses
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"
}
Get Talent Licenses
Retrieve all NIL licenses managed by 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"
}
Response Fields
Array of license objects.
Show License Properties
Show License Properties
Unique license identifier.
Associated talent ID.
Talent’s name.
License name.
License type.
Appearance fee amount.
Whether the license allows automated content crawling.
Number of images included in the license.
License status (active, inactive, expired).
Usage Examples
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?
⌘I