Organizations API
The Organizations API allows you to retrieve information about all registered organizations in your Unpod platform.Prerequisites: Make sure you have your API Token ready. See Authentication for details.
Get All Organizations
Retrieve detailed information of every registered organization, helping you view and manage organizational records in the system.Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
Example Request
Success Response (200)
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 |
|---|---|---|
| name | string | Organization name |
| token | string | Organization token |
| domain | string | Organization domain |
| domain_handle | string | Domain handle for API requests |
| is_private_domain | boolean | Whether the domain is private |
| role | string | User’s role: viewer, admin, member |
Error Response (401 — Unauthorized)
Common Error Codes
| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Access denied to the resource |
| 500 | Internal Server Error - Server-side error |
Code Examples
Best Practices
- Org-Handle: Use the
domain_handlefrom this API as theOrg-Handleheader in other API requests - Caching: Cache organization data to reduce API calls
- Error Handling: Always handle potential errors and edge cases
- Security: Keep API tokens secure and rotate them regularly