Skip to main content
GET
https://api-dev.weir.ai/
/
talent
curl -X GET 'https://api.weir.ai/talent?page=1&limit=20' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "data": {
    "talents": [
      {
        "talentId": "talent_123456789",
        "fullname": "John Athlete",
        "email": "[email protected]",
        "status": "active",
        "verified": true,
        "createdAt": "2024-01-15T10:30:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 50,
      "totalPages": 3
    }
  },
  "message": "Talent list retrieved successfully",
  "status": "success"
}

Get Talent List

Retrieve a list of all talent in the system.
curl -X GET 'https://api.weir.ai/talent?page=1&limit=20' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "data": {
    "talents": [
      {
        "talentId": "talent_123456789",
        "fullname": "John Athlete",
        "email": "[email protected]",
        "status": "active",
        "verified": true,
        "createdAt": "2024-01-15T10:30:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 50,
      "totalPages": 3
    }
  },
  "message": "Talent list retrieved successfully",
  "status": "success"
}

Query Parameters

page
integer
default:"1"
Page number for pagination.
limit
integer
default:"20"
Number of items per page (1-100).

Usage Examples

const getTalent = async (page, limit, accessToken) => {
  const response = await fetch(`https://api.weir.ai/talent?page=${page}&limit=${limit}`, {
    headers: {
      'Authorization': `Bearer ${accessToken}`,
      'x-source': 'console'
    }
  });
  if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
  return await response.json();
};