Skip to main content
GET
https://api-dev.weir.ai/
/
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

data.licenses
array
required
Array of license objects.

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();
};