Skip to main content
GET
https://api-dev.weir.ai/
/
org
/
platforms
curl -X GET 'https://api.weir.ai/org/platforms' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "data": {
    "platforms": [
      {
        "platformId": "platform_123456789",
        "name": "My Platform",
        "type": "Forum/Community",
        "domain": "myplatform.com",
        "status": "verified",
        "teamId": "team_123456789",
        "createdAt": "2024-01-15T10:30:00Z"
      }
    ]
  },
  "message": "Platforms retrieved successfully",
  "status": "success"
}

Get Platforms

Retrieve a list of all platforms associated with your organization.
curl -X GET 'https://api.weir.ai/org/platforms' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "data": {
    "platforms": [
      {
        "platformId": "platform_123456789",
        "name": "My Platform",
        "type": "Forum/Community",
        "domain": "myplatform.com",
        "status": "verified",
        "teamId": "team_123456789",
        "createdAt": "2024-01-15T10:30:00Z"
      }
    ]
  },
  "message": "Platforms retrieved successfully",
  "status": "success"
}

Response Fields

data.platforms
array
required
Array of platform objects.

Usage Examples

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