Skip to content

Key concepts: organizations, environments, spaces, content types, and entries

The things you work with in Hako CMS nest from largest to smallest: “organization → environment → space → content type → entry”. You manage organizations and environments on the account and billing screen, and spaces and everything below them in the environment’s admin.

Organization (e.g. Acme Inc.) Account and billing screen
└─ Environment (e.g. acme.hakocms.net) From here down: the environment's admin
├─ Space (e.g. Blog)
│ ├─ Content type (e.g. Article)
│ │ └─ Entry (e.g. "My first article")
│ ├─ Media
│ ├─ API keys
│ └─ Members and roles
└─ Space (e.g. Corporate site)

An organization is the unit of a contract. When you sign up, one organization is created with your company or trade name (or your name, if you don’t enter one), and you become its owner.

  • Environments belong to an organization
  • People join an organization with a role (owner, billing manager, or member). One person can join multiple organizations
  • To sign a contract under a different company or trade name, create another organization

An environment is one place for your own Hako CMS. It has the address https://<hostname>.hakocms.net; the admin is at /admin and the API at /api. On the account and billing screen, it’s shown as “CMS”.

  • Data (spaces, entries, media) and users are separate for each environment. They don’t mix with other environments
  • The person who created the environment becomes its first administrator. The first administrator can create spaces

A space is the unit that groups the entries of one site or app. You can create multiple spaces in one environment.

  • Content types, entries, media, API keys, and webhooks are separate for each space
  • You issue API keys per space. A key can read only the entries of its own space
  • People who use the admin have a role in the space as members (owner, administrator, editor, viewer, or a role you created)

A content type is a box that holds entries. You create one for each kind of thing you store, such as “Articles”, “Announcements”, or “Authors”, and decide which fields (title, body, image, and so on) it has.

  • There are two kinds: a “collection”, which can hold any number of entries, and a “single”, which holds only one
  • The content type ID ([エンドポイント](Endpoint) on screen) goes into the API URL (/api/v1/content/posts)

An entry is one item in a content type. One article and one announcement are each one entry.

  • When you save a draft and publish it, it can be read with the API
  • The entry ID goes into the URL for retrieving a single item (/api/v1/content/posts/hello)

In Hako CMS, one person has two accounts. You log in to both with your email address, but the passwords are separate.

Account Where it’s used What it’s for How the password is set
Account for the account and billing screen The account and billing screen See the list of organizations and environments, add environments, add people to an organization Entered when you sign up
Admin user The environment’s admin (https://<hostname>.hakocms.net/admin) Create spaces, write entries, issue API keys Set through a link sent by email

Changing the password on one doesn’t change the other.

Adding people to an organization doesn’t let them into the environment’s admin. To enter the admin, they need to be invited to a space and create an admin user.

  • Organizations and environments are separate because the people in charge of the contract (who pays and who adds people) and the CMS content (who writes entries) are often different. For example, when a web agency builds a site and the client’s contact person writes articles, the agency holds the organization, and the client’s contact person can use only the admin as a member of the space
  • Spaces are separate so that one environment can hold the entries of multiple sites or apps separately. API keys and members are also per space, so a key for one site can’t read the entries of another site