Skip to main content

Module cloud

Module cloud 

Source
Expand description

Authenticated HTTP client for the gitorii.com backend.

Every call carries Authorization: Bearer gitorii_sk_<key> from crate::auth. Translates HTTP status into actionable ToriiErrors the CLI can surface verbatim: 401 → “API key rejected. Run torii auth login to refresh.” 402 → “current plan

insufficient. Upgrade at .” 403 → “organization suspended.” 5xx → “server error: …”.

Modules§

whoami
GET /api/v1/whoami — verify API key + load org info.

Structs§

CloudClient