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"
}
Retrieve detailed information about your organization
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"
}
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"
}
x-source: console header.
Show Organization Properties
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);
Was this page helpful?