Sam may write and change the menus on a restaurant's site, and nothing else. Rio reads everything and publishes nothing. In LyEve each of them is an account with a role, and two access rules decide what each role may do with each content type.
The free tier holds rules for three roles, and the two here use two of them. Neither account counts toward the three admin accounts a free install holds.
A running LyEve and a super admin
- LyEve on PostgreSQL, MySQL or SQL Server, with LyEve Console. Supported databases gives the connection string for each. We ran every step below on PostgreSQL 16 on November 11, 2026, with the LyEve engine v0.62.0 and admin console v0.28.0.
- A super admin account, because only a super admin writes access rules and creates accounts.
- A token for that account in
TOKEN, for the API steps and for step 1. The quickstart shows how to get one.
The engine's Admin API answers on port 3001 and its Content API on port 3002, as in the quickstart.
1. Create two content types
Sam will edit menu, and location stands for every content type Sam must leave alone. menu gets drafts and publishing, which gives Rio something to be refused. On console v0.28.0 only the API turns drafts on, so this step is an API call on either path:
curl -X POST http://localhost:3001/api/admin/schemas \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "menu", "display_name": "Menu", "with_draft_publish": true, "fields": [{"name": "title", "field_type": "text", "required": true}, {"name": "body", "field_type": "rich_text"}]}'
curl -X POST http://localhost:3001/api/admin/schemas \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "location", "display_name": "Location", "fields": [{"name": "title", "field_type": "text", "required": true}, {"name": "address", "field_type": "text"}]}'Each answers 200 with the stored definition.
2. Let editor work on menus
A rule names a role, one content type and the actions allowed on it. Sam gets read, create and update on menu, and no delete.
Console v0.28.0
- Open Access > Permissions. The
editorrow says No rules. - Choose the plus button on the
editorrow, Add a content type rule for editor. - In Resource, pick
menu. Tick Create, Read and Update, and leave Delete clear. - Choose Create. The row now says 1 rule.
Engine API v0.62.0
curl -X POST http://localhost:3001/api/admin/permissions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"role": "editor", "schema_name": "menu", "actions": ["read", "create", "update"]}'{"id":"f3ef55d2-185d-421f-9dcb-f468b294836f","role":"editor","schema_name":"menu","actions":["read","create","update"],"field_mask":[],"created_at":"2026-11-11T11:47:09.853925Z","tenant_id":""}A role with no rule on a content type is refused every action on it. editor now has a rule on menu alone. location and every other content type stay shut to Sam.
3. Let viewer read every content type
Rio holds the viewer role, which has no rights of its own. One rule on *, every content type, gives it read and nothing more.
Console v0.28.0
- On Access > Permissions, choose New role.
- Enter
viewerin Role name and choose Create. The new row holds an Every content type rule with no actions. - Choose the pencil on that rule, Edit rule for viewer on every content type.
- Tick Read and choose Save.
Engine API v0.62.0
curl -X POST http://localhost:3001/api/admin/permissions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"role": "viewer", "schema_name": "*", "actions": ["read"]}'The answer is 200 with the rule. Ask how many of the free three roles now hold rules:
curl http://localhost:3001/api/admin/permissions/limits \
-H "Authorization: Bearer $TOKEN"{"roles":{"limit":3,"current":2}}4. Create the two accounts
LyEve has no invitation email on this release. You create each account with a password and hand it to the person.
Console v0.28.0
- Open Access > Users and choose New user.
- Enter
sam@example.comin Email andEditor-Account-2026in Password. - Under Roles, untick viewer, which the form ticks for you, and tick editor. Choose Create.
- Choose New user again. Enter
rio@example.comandReviewer-Account-2026, keep viewer ticked and choose Create.
The list shows both accounts with their roles.
Engine API v0.62.0
curl -X POST http://localhost:3001/api/admin/users \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"email": "sam@example.com", "password": "Editor-Account-2026", "roles": ["editor"]}'
curl -X POST http://localhost:3001/api/admin/users \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"email": "rio@example.com", "password": "Reviewer-Account-2026", "roles": ["viewer"]}'Each answers 201 with the account and its roles.
Use your own passwords. The default policy wants 12 characters or more, with an upper-case letter, a lower-case letter and a digit.
5. Write as Sam
Sam works through the Content API, from your site's own editing screen or a terminal. Editing in the console takes an admin account. When Sam signs in there, the Content page says Your role cannot open content. Ask a super admin if you need it.
Sign in as Sam and keep the token:
SAM=$(curl -s -X POST http://localhost:3001/api/admin/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "sam@example.com", "password": "Editor-Account-2026"}' \
| grep -o '"token":"[^"]*"' | cut -d'"' -f4)Write a menu as a draft:
curl -X POST http://localhost:3002/api/v1/content/menu \
-H "Authorization: Bearer $SAM" \
-H "Content-Type: application/json" \
-d '{"data": {"title": "Autumn menu", "body": "Soup and bread.", "_status": "draft"}}'The answer is 201 with the entry. Copy its id into MENU_ID. Changing it with PUT http://localhost:3002/api/v1/content/menu/$MENU_ID answers 200 the same way.
Now try a location:
curl -X POST http://localhost:3002/api/v1/content/location \
-H "Authorization: Bearer $SAM" \
-H "Content-Type: application/json" \
-d '{"data": {"title": "Station Road"}}'{"code":"forbidden","error":"permission denied","request_id":"..."}The answer is 403. Deleting the menu answers the same, because the rule leaves out delete.
6. Try to publish as Rio
Sign in as Rio the same way, into RIO, then read the menus:
curl http://localhost:3002/api/v1/content/menu \
-H "Authorization: Bearer $RIO"The list holds the published menus and not Sam's draft. Now try to publish that draft:
curl -X PUT http://localhost:3002/api/v1/content/menu/$MENU_ID/publish \
-H "Authorization: Bearer $RIO"{"code":"forbidden","error":"insufficient permissions","request_id":"..."}The answer is 403. A write on the Content API takes the editor, admin or super_admin role before any rule is read. A viewer account cannot create, change or publish anything. Sam's own publish of the same draft answers 204, because publishing takes the update action.
Reading drafts without publishing them
Rio sees published entries only. A role reads drafts when it holds both read and update on the content type, and update is also what publishes. A reviewer who has to read drafts before they go out needs a step of its own between the writer and the publish.
Editorial review is that step: stages, a role for each stage, and publishing on the final approval. One review workflow per tenant is free.
The free limits
- Three roles. Rules may name three different roles. A rule for a fourth answers
402with"cap":"rbac.roles". Roles Pro, $2 a month and in every plan from Starter, removes the limit. Editing a rule for a role that already has one is always allowed. - Three admin accounts. An account with the
adminorsuper_adminrole takes one of three. A fourth answers402with"cap":"admin.seats", and any license removes that limit.editorandvieweraccounts are not admin accounts, and Sam and Rio take none of the three.
A free install runs one tenant. To give each client their own users and content, one install, many clients covers tenants and what they cost.
When a step does not answer as shown
A new rule answers 402 with cap_exceeded
Three roles already hold rules. Read them with GET /api/admin/permissions and delete one you no longer need with DELETE /api/admin/permissions/{id}, or add Roles Pro. On Access > Permissions, the remove button on a rule's row deletes it.
Sam's request answers permission denied on menu
The rule names another content type, or another role. GET /api/admin/permissions lists every rule with its role and schema_name. A rule for the same role and content type sent again replaces the old one.
Sign-in answers Too many attempts
Every install allows five sign-in attempts per client address every 15 minutes. Wait for the window to pass, then sign in once and reuse the token.
A key for your website
Your site reads content with an API key rather than a person's account, and a key carries roles and the same access rules. API keys shows a key that reads one content type and nothing else.
Before you hand out the passwords, what a headless CMS is and how to choose one set out where editors fit beside the code that reads content.