Skip to main content
GET
https://api-dev.weir.ai/
/
org
/
information
curl -X GET 'https://api.weir.ai/org/information' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "data": {
    "organizationId": "org_123456789",
    "name": "Acme Corporation",
    "type": "Platform",
    "basicInfo": {
      "website": "https://acmecorp.com",
      "industry": "TECHNOLOGY",
      "companySize": "MEDIUM",
      "founded": "2020",
      "description": "A leading technology platform"
    },
    "address": {
      "address1": "123 Main St",
      "address2": "Suite 100",
      "city": "San Francisco",
      "state": "CA",
      "postalCode": "94105",
      "country": "USA"
    },
    "contact": {
      "phone": "+1-415-555-0100",
      "email": "[email protected]"
    },
    "taxInfo": {
      "taxId": "12-3456789",
      "taxOrgType": "CORPORATION"
    },
    "createdAt": "2024-01-01T00:00:00Z",
    "status": "active"
  },
  "message": "Organization information retrieved successfully",
  "status": "success"
}

Get Organization Information

Retrieve comprehensive information about your organization including basic details, contact information, and settings.
curl -X GET 'https://api.weir.ai/org/information' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "data": {
    "organizationId": "org_123456789",
    "name": "Acme Corporation",
    "type": "Platform",
    "basicInfo": {
      "website": "https://acmecorp.com",
      "industry": "TECHNOLOGY",
      "companySize": "MEDIUM",
      "founded": "2020",
      "description": "A leading technology platform"
    },
    "address": {
      "address1": "123 Main St",
      "address2": "Suite 100",
      "city": "San Francisco",
      "state": "CA",
      "postalCode": "94105",
      "country": "USA"
    },
    "contact": {
      "phone": "+1-415-555-0100",
      "email": "[email protected]"
    },
    "taxInfo": {
      "taxId": "12-3456789",
      "taxOrgType": "CORPORATION"
    },
    "createdAt": "2024-01-01T00:00:00Z",
    "status": "active"
  },
  "message": "Organization information retrieved successfully",
  "status": "success"
}

Authentication

Requires Console API authentication with bearer token and x-source: console header.

Response Fields

data
object
required
Organization data object containing all organization information.

Usage Examples

const getOrganizationInfo = async (accessToken) => {
  try {
    const response = await fetch('https://api.weir.ai/org/information', {
      method: 'GET',
      headers: {
        'Authorization': `Bearer ${accessToken}`,
        'x-source': 'console'
      }
    });
    
    if (!response.ok) {
      throw new Error(`HTTP error! status: ${response.status}`);
    }
    
    const data = await response.json();
    return data.data;
  } catch (error) {
    console.error('Get organization info error:', error);
    throw error;
  }
};

// Usage
const orgInfo = await getOrganizationInfo('your_access_token');
console.log('Organization:', orgInfo.name);
console.log('Type:', orgInfo.type);
Pro Tip: Cache organization information and refresh periodically to reduce API calls.