Skip to content

API Tenants

Maintained by: Aether365 Team Audience: Developers Scope: Tenant API endpoints - reading and updating tenant configuration

Ανάκτηση Τρέχοντος Tenant

Επιστρέφει το προφίλ και τις πληροφορίες πλάνου του πιστοποιημένου tenant.

GET /tenants/me

Παράδειγμα Αιτήματος

bash
curl https://api.aether365.io/tenants/me \
  -H "Authorization: Bearer <token>"

Παράδειγμα Απάντησης

json
{
  "success": true,
  "data": {
    "id": "t_abc123",
    "email": "admin@example.com",
    "companyName": "Example Corp",
    "planTier": "pro",
    "createdAt": "2026-01-15T10:00:00Z",
    "updatedAt": "2026-04-01T08:30:00Z"
  }
}

Πεδία Απάντησης

ΠεδίοΤύποςΠεριγραφή
idstringΑναγνωριστικό tenant
emailstringEmail κατόχου λογαριασμού
companyNamestringΟνομα εταιρείας (προερχόμενο από το email domain)
planTierstringΤρέχον πλάνο: free, pro, enterprise
createdAtstringΧρονοσφραγίδα ISO 8601 δημιουργίας λογαριασμού
updatedAtstringΧρονοσφραγίδα ISO 8601 τελευταίας ενημέρωσης

Ενημέρωση Προφίλ Tenant

Ενημερώνει το εμφανιζόμενο όνομα του tenant.

PATCH /tenants/me

Σώμα Αιτήματος

json
{
  "companyName": "Acme Security Ltd"
}
ΠεδίοΤύποςΥποχρεωτικόΠεριγραφή
companyNamestringΟχιΕμφανιζόμενο όνομα για το tenant

Παράδειγμα Αιτήματος

bash
curl -X PATCH https://api.aether365.io/tenants/me \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"companyName": "Acme Security Ltd"}'

Παράδειγμα Απάντησης

json
{
  "success": true,
  "data": {
    "id": "t_abc123",
    "email": "admin@example.com",
    "companyName": "Acme Security Ltd",
    "planTier": "pro",
    "createdAt": "2026-01-15T10:00:00Z",
    "updatedAt": "2026-04-10T12:00:00Z"
  }
}
Σας φάνηκε χρήσιμη αυτή η σελίδα;