Skip to main content
POST
https://api-dev.weir.ai/
/
org
/
talent
/
license
/
:talentId
curl -X POST 'https://api.weir.ai/org/talent/license/talent_123456789' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console' \
  -F 'name=Social Media Campaign' \
  -F 'type=social_media' \
  -F 'description=License for social media usage' \
  -F 'appearanceFee=5000' \
  -F 'canCrawl=true' \
  -F '[email protected]' \
  -F '[email protected]'
{
  "data": {
    "licenseId": "lic_123456789",
    "talentId": "talent_123456789",
    "name": "Social Media Campaign",
    "type": "social_media",
    "appearanceFee": 5000.00,
    "canCrawl": true,
    "imageCount": 2,
    "status": "active",
    "createdAt": "2024-01-22T15:30:00Z"
  },
  "message": "License created successfully",
  "status": "success"
}

Create License

Create a new NIL (Name, Image, Likeness) license for a talent in your agency.
curl -X POST 'https://api.weir.ai/org/talent/license/talent_123456789' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console' \
  -F 'name=Social Media Campaign' \
  -F 'type=social_media' \
  -F 'description=License for social media usage' \
  -F 'appearanceFee=5000' \
  -F 'canCrawl=true' \
  -F '[email protected]' \
  -F '[email protected]'
{
  "data": {
    "licenseId": "lic_123456789",
    "talentId": "talent_123456789",
    "name": "Social Media Campaign",
    "type": "social_media",
    "appearanceFee": 5000.00,
    "canCrawl": true,
    "imageCount": 2,
    "status": "active",
    "createdAt": "2024-01-22T15:30:00Z"
  },
  "message": "License created successfully",
  "status": "success"
}

Path Parameters

talentId
string
required
Unique identifier of the talent.

Request Body (multipart/form-data)

name
string
required
License name.
type
string
required
License type (social_media, advertising, endorsement).
description
string
License description.
appearanceFee
number
Appearance fee amount.
canCrawl
boolean
Whether automated content crawling is allowed.
images
file[]
Array of image files to include in the license.

Usage Examples

const createLicense = async (talentId, licenseData, accessToken) => {
  const formData = new FormData();
  formData.append('name', licenseData.name);
  formData.append('type', licenseData.type);
  formData.append('description', licenseData.description);
  formData.append('appearanceFee', licenseData.appearanceFee);
  formData.append('canCrawl', licenseData.canCrawl);
  
  // Add images
  licenseData.images?.forEach(image => {
    formData.append('images', image);
  });
  
  const response = await fetch(`https://api.weir.ai/org/talent/license/${talentId}`, {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${accessToken}`,
      'x-source': 'console'
      // Don't set Content-Type - browser sets it with boundary for FormData
    },
    body: formData
  });
  if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
  return await response.json();
};
This endpoint accepts multipart/form-data for file uploads.