Organisations-Details abrufen
GET /api/organization
Organisations-Details abrufen
GET /api/organization
Gibt Details der Organisation aus deiner authentifizierten Session zurück.
Beispiel (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<dein-api-token>"
curl -X GET "$BASE_URL/api/organization" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"
Hinweise:
- Die Organisation wird automatisch aus deiner authentifizierten Session bzw. deinem API-Token abgeleitet.
- Die Legacy-Route
GET /api/organizations/:organizationPublicIdbleibt aus Kompatibilitätsgründen weiterhin verfügbar. - Der plurale org-lose Alias
GET /api/organizationswird ebenfalls unterstützt. - Global Admins brauchen für die org-lose Route einen aktiven Organisationskontext in der Session.
Antwort (Response)
{
"id": 1,
"name": "Meine Org",
"companyName": "Meine Firma GmbH",
"street": "Musterstr. 1",
"postalCode": "12345",
"city": "Berlin",
"country": "DE",
"vatId": "DE123456789",
"billingEmail": "billing@example.com",
"createdAt": "2023-01-01T00:00:00.000Z"
}
Häufige Fehler
400 Organization ID is required in the authenticated sessionwenn aus Session/Token keine Organisation abgeleitet werden kann401 Unauthorizedwenn du nicht angemeldet bist403 Forbiddenwenn du keinen Zugriff auf die Organisation hast