Get Organization
Get an organization by ID.
Quick Navigation
Endpoint
GET /api/v1/organizations/{org_id}
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | integer | Yes | Unique identifier of the organization. You can obtain organization IDs from the List Organizations endpoint. |
Response
Success (200)
{
"success": true,
"data": {
"organization": {
"id": 1,
"name": "Acme Corporation",
"domain": "acme.com",
"plan": "enterprise",
"created_at": "2024-01-01T00:00:00Z"
},
"message": "Organization retrieved successfully"
},
"message": "Organization retrieved successfully"
}
Features
- Complete Organization Data: Returns comprehensive organization information including name, domain, plan, and metadata
- Permission Validation: Ensures only authorized users (organization members or system admins) can access organization details
- Access Control: Automatically filters organizations based on user membership
- Metadata Included: Provides creation timestamps and other organizational metadata
Response Fields
| Field | Type | Description |
|---|---|---|
organization | object | Organization details object |
organization.id | integer | Unique organization identifier |
organization.name | string | Organization name |
organization.domain | string | Organization domain (if configured) |
organization.plan | string | Organization subscription plan (e.g., "enterprise", "professional") |
organization.created_at | string (ISO 8601) | Timestamp when the organization was created |
Related Endpoints
- List Organizations - Get list of all accessible organizations (prerequisite for finding organization IDs)
- Update Organization - Update organization details
- Create Organization - Create a new organization
- List Workspaces - Get workspaces within the organization
See Also
- Organizations API Overview - Complete guide to organization management
- Authentication Concepts - Understanding authentication and token management
- Roles & Permissions API - Understanding organization roles and permissions
- Error Handling - Understanding API error responses