Organizations
List organizations
Every organization you own, oldest first, with whether its workspace is ready.
Updated
https://cloud.cahaves.com/api/organizations
Authorization
cahaves.cloud.sessionstringcookierequired
The session cookie Cloud sets when a customer signs in to the console with GitHub or Google. It is HttpOnly, so scripts cannot read it, and there are no API keys or tokens yet.
Headers
X-Cloud-Organizationstring<uuid>
The id of the organization the request works in, one the signed-in customer owns. Left out or empty, the request works in their oldest organization. Any other value answers 404 with `reason: "organization"`. A customer with no organization yet gets 409 "Create an organization first." from every route that works in one.
Example: "2f6c8e0a-4b1d-4e7f-9a3c-5d7e9f1b3a5c"
Responses
application/json
The organizations, possibly none.
organizationsobject[]required
The same list Get the signed-in customer answers as organizations: every organization the customer owns, oldest first. The oldest is the one a request works in when it names none. A new account answers an empty list until it creates its first.
workspace_ready is each organization's own. It is false from the moment an organization is created until its workspace on the platform is prepared, and while it is, creating a project in that organization answers 409 with "Your workspace is still being prepared." Read the list again to see it change. Organizations explains what an organization holds.