curl --request GET \
--url https://api.example.com/app/v1/organizations/{organizationId}Get an organization by ID
curl --request GET \
--url https://api.example.com/app/v1/organizations/{organizationId}{
"id": "org123",
"name": "Acme Corp",
"slug": "acme-corp",
"description": "Acme Corporation main organization",
"status": "active",
"settings": {
"timezone": "America/New_York",
"locales": ["en-US", "es-ES"],
"features": {
"assetOptimization": true,
"advancedPermissions": true
}
},
"roles": {
"role123": "Editor",
"role456": "Viewer"
},
"metadata": {
"createdBy": "user123",
"maxProjects": 10
},
"subscription": {
"tierId": "tier_pro",
"status": "active",
"currentPeriodStart": "2024-03-01T00:00:00Z",
"currentPeriodEnd": "2024-04-01T00:00:00Z"
},
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-03-20T10:00:00Z"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Organization org123 was not found"
}
}
curl -X GET "https://api.metabind.ai/app/v1/organizations/org123" \
-H "Authorization: Bearer YOUR_JWT"