API Tenant
Maintainer: Aether365 Team Destinatari: Sviluppatori Ambito: Endpoint API Tenant - lettura e aggiornamento della configurazione del tenant
Ottenere il tenant corrente
Restituisce il profilo e le informazioni sul piano del tenant autenticato.
GET /tenants/meRichiesta di esempio
bash
curl https://api.aether365.io/tenants/me \
-H "Authorization: Bearer <token>"Risposta di esempio
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"
}
}Campi della risposta
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificativo del tenant |
email | string | Email del proprietario dell'account |
companyName | string | Nome dell'azienda (derivato dal dominio email) |
planTier | string | Piano attuale: free, pro, enterprise |
createdAt | string | Timestamp ISO 8601 della creazione account |
updatedAt | string | Timestamp ISO 8601 dell'ultimo aggiornamento |
Aggiornare il profilo del tenant
Aggiorna il nome visualizzato del tenant.
PATCH /tenants/meCorpo della richiesta
json
{
"companyName": "Acme Security Ltd"
}| Campo | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
companyName | string | No | Nome visualizzato per il tenant |
Richiesta di esempio
bash
curl -X PATCH https://api.aether365.io/tenants/me \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"companyName": "Acme Security Ltd"}'Risposta di esempio
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"
}
}