Get Organizations
Organisation
Get all Organizations
GET
Get Organizations
Documentation Index
Fetch the complete documentation index at: https://docs.unpod.dev/llms.txt
Use this file to discover all available pages before exploring further.
Organizations API
Retrieve a list of all organizations associated with your API token. Thedomain_handle field in the response is used as the Org-Handle header in subsequent API requests.
Response Fields
| Field | Type | Description |
|---|---|---|
| count | integer | Total number of organizations |
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | array | Array of organization objects |
Organization Object Fields
| Field | Type | Description |
|---|---|---|
| id | integer | Unique organization identifier |
| name | string | Organization display name |
| domain_handle | string | Domain handle used as Org-Handle in API requests |
| created_at | string | Organization creation timestamp (ISO 8601) |
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters provided |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Access denied to the resource |
| 404 | Not Found - Organization not found |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Org-Handle: Use the
domain_handlefrom the response as theOrg-Handleheader in all subsequent requests - Caching: Cache organization data locally to reduce API calls since organizations change infrequently
- Error Handling: Always handle potential errors and edge cases
- Security: Keep API tokens secure and rotate them regularly
- Multiple Orgs: If you have access to multiple organizations, store all handles and switch between them as needed