Get Organization Details
GET /api/organization
Get Organization Details
GET /api/organization
Returns details of the organization from your authenticated session.
Example (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -X GET "$BASE_URL/api/organization" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"
Notes:
- The organization is derived automatically from your authenticated session or API token.
- The legacy route
GET /api/organizations/:organizationPublicIdremains supported for compatibility. - The plural org-less alias
GET /api/organizationsis also supported. - Global admins need an active organization context in the authenticated session for the org-less route.
Response
{
"id": 1,
"name": "My Org",
"companyName": "My Company GmbH",
"street": "Sample St. 1",
"postalCode": "12345",
"city": "Berlin",
"country": "DE",
"vatId": "DE123456789",
"billingEmail": "billing@example.com",
"createdAt": "2023-01-01T00:00:00.000Z"
}
Common errors
400 Organization ID is required in the authenticated sessionwhen no organization can be derived from the current session/token401 Unauthorizedwhen you are not logged in403 Forbiddenwhen you cannot access the organization