Aller au contenu

Le GET /api/v1/votes/claim est retiré le 1 octobre 2026.

Voir la migration

Plan d’une entité

Lecture CGS ID — le plan n’appartient pas à une personne.

Le plan vit sur auth.cgs-hub.com, pas sur le Hub.

curl -H "Authorization: Bearer VOTRE_CLE_APPLICATION" \
  "https://auth.cgs-hub.com/api/v1/entities/ent_01J/plan"
{
  "entity": { "id": "ent_01J", "kind": "server", "team_mode": null, "name": "…" },
  "plan": "premium_plus",
  "status": "active",
  "interval": "year",
  "current_period_end": "2026-10-01T00:00:00.000Z",
  "grace_until": null,
  "cancel_at_period_end": false,
  "pending_change": null,
  "delete_at": null,
  "since": "2026-01-01T00:00:00.000Z",
  "version": 12
}

Clé d’application au scope plans:read. Listing : POST /api/v1/entities/plans (jusqu’à 100).

Entité inconnue ou supprimée : même réponse qu’une entité Standard. Pas d’erreur 404.

kind : server | team. team_mode : solo | studio | null. Voir Plans.