meibo Settings API
The directory's name, preset, groups and logo.
The directory's name, preset, groups and logo.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/meibo-io:meibo-io-settings-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: meibo Settings API
description: 'Reads and changes an owner''s meibo school and club directories, through an
agent the owner hands a key to.
**A key is the owner''s, for every directory they have, and is shown
once.** The owner makes it on their account page and chooses its scopes
there. Only a hash of it is stored, so a lost key is revoked and replaced,
never recovered. A key acts as the owner and follows the owner''s rules.
**Name the directory with `?directory=`.** Every operation takes the
directory''s slug, the last part of its address, as `?directory=`.
Left out, a key reaches the owner''s one directory; when the owner has more
than one, it gets `400` with `reason: directory_required` and their slugs
in `directories`. A directory the key does not reach, another owner''s or
one that is not there, gets `404` with `reason: directory_not_reached`.
A key reaches a directory only while its owner owns it: handed to someone
else, it is out of the previous owner''s keys'' reach. A key made before keys
reached every directory reaches only the one it was made for, needs no
`?directory=`, and gets `401` once that directory changes hands.
**`entries:read` is off unless the owner grants it.** The dashboard shows
this beside it:
> Reads every entry in full: parents'' names, emails, phones and home addresses, and children''s names and teachers. What it reads goes to the assistant''s AI provider, under your control. Photos are never shared.
A key without it can still add, edit, publish and delete entries. What
those writes answer is an entry''s `id` and `isPublished`, and nothing of
what is in it.
**Photos are never served, and a key cannot send one.** An entry carries
`hasPhoto` wherever the dashboard shows a photo: on the entry, and on each
parent and child. A body that carries `photoKey` anywhere, even as `null`,
is refused `400` with `reason: photos`. Editing an entry keeps the photos it
already has.
**Every call is logged.** Each call a key is authenticated for is recorded
against the directory it reached, with its method, route and status, and
the owner can read that log for 90 days. That includes refusals. A refusal
before any directory is reached is not logged: a `401`, and the `400` and
`404` about `?directory=`.
**A suspended owner''s key keeps reading and withdrawing.** Reads,
unpublishing an entry and deleting one are served. Every other write gets
`403` with `reason: suspended`.
**So does the key of a frozen directory.** An account may own as many
directories as its plan allows. When it owns more, after a downgrade or a
lapsed subscription, its oldest directories are served in full and the
rest are frozen until the owner upgrades or deletes one. A frozen
directory''s key is served reads, unpublishes and deletes, and every other
write gets `403` with `reason: frozen`, the owner''s `plan` and its
directory `limit`.
**Rate limits.** The edge allows 300 requests per 5 minutes from one IP
address, and 600 requests per 5 minutes with one key, counted across
everything on this host. Past either limit, a request gets `429` with a
`WafBlock` body and never reaches meibo. Invites have their own cap: at
most 20 addresses per request, and 200 invites per directory in any 24
hours, shared with the invites the owner sends from the dashboard.
**Answers.** A success is `{ "success": true, "data": … }`. A refusal is a
bare `Refusal`. Its `error` is a sentence to show a person, and its
`reason`, when it has one, is a word to branch on.
**If something here did not work, tell us.** A call refused that this
reference says should succeed, a response that does not match its schema,
or a step that is missing or wrong: email support@fennec.studio with the
method and path, the status and the `error` and `reason` you got, and what
you expected. Leave out the key and anything an entry holds: names,
emails, phones and addresses stay in the directory. An agent that cannot
send email should give the owner the address.'
version: 1.0.0
contact:
name: meibo support
email: support@fennec.studio
servers:
- url: https://api.meibo.io
description: Production
tags:
- name: Settings
description: The directory's name, preset, groups and logo.
paths:
/api/v1/directory:
parameters:
- $ref: '#/components/parameters/Directory'
get:
operationId: readSettings
tags:
- Settings
summary: Read the directory's settings
description: Open to any key, whatever its scopes, and served while the owner is suspended.
security:
- directoryKey: []
responses:
'200':
description: The settings.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/Settings'
examples:
settings:
value:
success: true
data:
name: Maple Elementary
slug: maple
preset: school
groups:
- id: 66f0c1a2b3c4d5e6f7a8b9c0
name: Ms. Rivera
aliases:
- Room 4
leaders:
- 12
- id: 66f0c1a2b3c4d5e6f7a8b9c1
name: Mr. Chen
aliases: []
leaders: []
logoUrl: https://public.fennec.studio/storefronts/media/directory-logo-1.png
scopes:
- directory
- entries:write
- moderation
'400':
$ref: '#/components/responses/DirectoryRequired'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: 'The key does not reach the directory `?directory=` names (`reason: directory_not_reached`), or its owner no longer owns it.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
notReached:
$ref: '#/components/examples/DirectoryNotReached'
noDirectory:
value:
error: This account does not own a directory.
'429':
$ref: '#/components/responses/WafRateLimited'
put:
operationId: updateSettings
tags:
- Settings
summary: Change the directory's name, preset, groups or logo
description: Changes the fields the body sends, and answers the settings as they are now. The slug, both access rules, pre-screening and the email list stay dashboard-only.
security:
- directoryKey:
- directory
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SettingsUpdate'
examples:
rename:
value:
name: Maple Elementary School
groups:
- id: 66f0c1a2b3c4d5e6f7a8b9c0
name: Ms. Rivera
aliases:
- Room 4
leaders:
- 12
- name: Mr. Chen
responses:
'200':
description: The settings, as saved.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/Settings'
examples:
settings:
value:
success: true
data:
name: Maple Elementary School
slug: maple
preset: school
groups:
- id: 66f0c1a2b3c4d5e6f7a8b9c0
name: Ms. Rivera
aliases:
- Room 4
leaders:
- 12
- id: 66f0c1a2b3c4d5e6f7a8b9c1
name: Mr. Chen
aliases: []
leaders: []
logoUrl: null
scopes:
- directory
'400':
description: 'A field a key may not change (`reason: dashboard-only`, with `field`), a body that is not a JSON object, or a field that fails its check (with `field`). Or the key reaches more than one directory and the call named none (`reason: directory_required`).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
directoryRequired:
$ref: '#/components/examples/DirectoryRequired'
dashboardOnly:
value:
error: An API key can change only name, preset, groups and logo.
reason: dashboard-only
field: slug
badField:
value:
error: Enter a name.
field: name
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: 'The key lacks `directory` (`reason: scope`), the owner is suspended (`reason: suspended`), or the directory is frozen (`reason: frozen`).'
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
scope:
value:
error: This API key does not have the directory scope.
reason: scope
scope: directory
suspended:
$ref: '#/components/examples/Suspended'
frozen:
$ref: '#/components/examples/Frozen'
'404':
description: 'The key does not reach the directory `?directory=` names (`reason: directory_not_reached`), or its owner no longer owns it.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
notReached:
$ref: '#/components/examples/DirectoryNotReached'
noDirectory:
value:
error: This account does not own a directory.
'409':
description: 'A `preset` whose people are in one group each (`school`, `team`, `other`), sent while some people are in more than one group. `field` is `preset`, and `error` says how many. Nothing is saved.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
severalGroups:
value:
error: 2 people are in more than one production. Leave each of them in one before switching.
field: preset
'413':
description: The logo, or the whole body, is too large. `field` is `logo` when it is the logo.
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
logo:
value:
error: Logos must be 512 KB or smaller.
field: logo
'429':
$ref: '#/components/responses/WafRateLimited'
components:
schemas:
Settings:
type: object
required:
- name
- slug
- preset
- groups
- logoUrl
- scopes
properties:
name:
type: string
slug:
type: string
description: The directory's slug. Only its manage page, `/manage/<slug>/`, changes it.
preset:
$ref: '#/components/schemas/Preset'
groups:
type: array
items:
$ref: '#/components/schemas/Group'
description: 'The directory''s groups: its classes, teams or productions, as its preset names them. A child joins one by its `id`.
'
logoUrl:
type:
- string
- 'null'
format: uri
description: The logo's public URL, or null when there is none.
scopes:
type: array
items:
$ref: '#/components/schemas/Scope'
description: The scopes of the key that asked.
description: 'The directory''s settings, as a key sees them. The two access rules, the email list and billing are the dashboard''s, and are not here.
'
Refusal:
type: object
required:
- error
properties:
error:
type: string
description: A sentence to show a person. Its wording can change; branch on `reason`.
reason:
type: string
description: "A word to branch on, where the refusal has one. This is not an enum.\nLayers this API shares with the dashboard pass their own reasons\nthrough, so expect values that are not listed here. Known values:\n\n- `scope`: the key lacks the scope named in `scope`.\n- `dashboard-only`: a settings body names a field only the dashboard\n may change. `field` names it.\n- `photos`: the body carries `photoKey`.\n- `suspended`: the owner's account is suspended, and this is a write\n other than an unpublish or a delete.\n- `frozen`: the directory is past the number its owner's plan\n allows, and this is a write other than an unpublish or a delete.\n `plan` and `limit` say which plan and how many.\n- `entry_limit`: publishing would take the directory past its plan's\n entry limit. `limit` is that limit.\n- `directory_required`: the key reaches more than one directory\n and the call named none. `directories` lists their slugs.\n- `directory_not_reached`: the key does not reach the directory\n `?directory=` names.\n"
scope:
$ref: '#/components/schemas/Scope'
description: With `reason` `scope`, the scope the key lacks.
field:
type: string
description: 'A settings body''s field. With `reason` `dashboard-only`, the first field a key may not change. Otherwise, the field that failed its check: `name`, `preset`, `groups` or `logo`.
'
limit:
type: integer
description: 'With `reason` `entry_limit`, how many published entries the plan allows. With `reason` `frozen`, how many directories it allows.
'
plan:
type: string
description: 'With `reason` `frozen`, the owner''s plan: `free`, `small` or `large`. Custom allows any number, so it never freezes one.
'
directories:
type: array
items:
type: string
description: 'With `reason` `directory_required`, the slugs of the directories the key reaches, oldest first. Send one as `?directory=`.
'
invalid:
type: array
items:
type: string
description: Invites only. The addresses that are not email addresses.
removed:
type: array
items:
type: string
description: Invites only. The addresses of people the owner removed or declined.
remaining:
type: integer
minimum: 0
description: Invites only. How many more invites the directory may send now.
sent:
type: array
items:
type: string
description: Invites only. The addresses that were emailed before others failed.
failed:
type: array
items:
type: string
description: Invites only. The addresses that could not be emailed.
description: 'Every refusal meibo itself answers. `error` is always there. Everything else depends on the refusal, and each operation''s responses say which fields its refusals carry.
'
GroupInput:
type: object
properties:
id:
type: string
minLength: 1
name:
type:
- string
- 'null'
maxLength: 80
aliases:
type: array
maxItems: 10
items:
type: string
maxLength: 80
leaders:
type: array
items:
type: integer
minimum: 1
SettingsUpdate:
type: object
additionalProperties: false
properties:
name:
type: string
minLength: 1
maxLength: 100
description: The directory's name, trimmed.
preset:
$ref: '#/components/schemas/Preset'
groups:
type: array
maxItems: 100
items:
$ref: '#/components/schemas/GroupInput'
description: 'Replaces the whole list. A group sent with an `id` keeps that group and the children in it, and the `id` must be one of this directory''s; a group sent without one is new. Each group needs a name or a leader, no two may share a name (ignoring case), and each leader must be a staff entry of this directory. Text is trimmed, blank aliases are dropped, and a row with nothing in it is dropped.
'
logo:
type: string
description: 'A new logo: the image''s bytes in base64, optionally as a `data:` URL. PNG, JPEG or WebP, whatever the declared type says, 512 KB or smaller and at most 2048 pixels on each side. SVG is refused. There is no way to remove a logo here, and `null` is refused.
'
description: 'Only `name`, `preset`, `groups` and `logo`. Any other field is refused `400` with `reason: dashboard-only` before anything is saved. A field left out keeps its value, so `{}` changes nothing and answers the settings.
'
Group:
type: object
required:
- id
- name
- aliases
- leaders
properties:
id:
type: string
description: Send it back in an update to keep this group, and the children in it.
name:
type:
- string
- 'null'
description: The group's name. Null for a group known by its leader.
aliases:
type: array
items:
type: string
description: Other names for the group, such as a room number.
leaders:
type: array
items:
type: integer
description: 'Entry ids of the staff entries that lead the group. Being a leader grants nothing.
'
Scope:
type: string
enum:
- directory
- entries:write
- moderation
- invites
- entries:read
description: A scope a key can hold. See the `directoryKey` scheme for what each allows.
WafBlock:
type: object
required:
- error
- message
properties:
error:
type: string
const: Too Many Requests
message:
type: string
description: A retry hint to show a person.
description: 'What the edge answers when it rate-limits a request. The request never reached meibo, so this is not a `Refusal`: `error` is a fixed status label and the sentence is in `message`. Back off and retry.
'
Preset:
type: string
enum:
- school
- team
- adultTeam
- theater
- study
- club
- other
description: 'What the directory is for. It sets the words its pages use, whether an entry is a family or one person, and how many groups each person can be in: one under `school`, `team`, `adultTeam` and `other`, any number under `theater`, `study` and `club`.
'
SuccessEnvelope:
type: object
required:
- success
- data
properties:
success:
type: boolean
const: true
data: {}
description: Every success, `201` included. `data` is the operation's answer.
examples:
WafBlock:
summary: Rate-limited at the edge
value:
error: Too Many Requests
message: Rate limit exceeded. Please try again later.
DirectoryNotReached:
summary: The key does not reach the directory named
value:
error: This API key does not reach that directory.
reason: directory_not_reached
Suspended:
summary: The owner's account is suspended
value:
error: This directory is suspended. Contact support.
reason: suspended
Unauthorized:
summary: No key, or a key that no longer works
value:
error: Invalid or expired API key
DirectoryRequired:
summary: The key reaches several directories, and the call named none
value:
error: This API key reaches more than one directory. Say which with ?directory=<slug>.
reason: directory_required
directories:
- maple
- oak
Frozen:
summary: The directory is past what the owner's plan allows
value:
error: This directory is read-only. Your Free plan includes 1 directory. Upgrade your plan or delete another directory to make changes here.
reason: frozen
plan: free
limit: 1
responses:
Unauthorized:
description: No key, or a key that is revoked, expired or no longer its directory owner's. Not logged.
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
unauthorized:
$ref: '#/components/examples/Unauthorized'
WafRateLimited:
description: 'The edge''s rate limit, per IP address or per key. The request never reached meibo. Back off and retry.
'
content:
application/json:
schema:
$ref: '#/components/schemas/WafBlock'
examples:
waf:
$ref: '#/components/examples/WafBlock'
DirectoryRequired:
description: 'The key reaches more than one directory and the call named none. `directories` lists their slugs: send one as `?directory=`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Refusal'
examples:
directoryRequired:
$ref: '#/components/examples/DirectoryRequired'
parameters:
Directory:
name: directory
in: query
required: false
schema:
type: string
description: 'The slug of the directory the call is about: the last part of its address. Needed only when the key reaches more than one directory.
'
securitySchemes:
directoryKey:
type: http
scheme: bearer
description: "The key, sent as `Authorization: Bearer <key>`. The `Bearer ` prefix may\nbe left off. A key that is missing, revoked or expired gets `401`, and\nso does a key made for one directory, before keys reached every\ndirectory, once that directory has changed hands.\n\nA key holds some of these scopes, chosen by the owner when it is made.\nEach operation's `security` names the scopes it needs, and an operation\nthat names none is open to any key. A key without a scope the operation\nneeds is refused `403` with `reason: scope`, and `scope` names it.\n\n- `directory`: change the directory's name, preset, groups and logo.\n- `entries:write`: add entries and edit them.\n- `moderation`: read the moderation queue, publish and unpublish\n entries, dismiss reports, and delete entries.\n- `invites`: email families a directory's address, within its invite\n cap. It lets nobody in.\n- `entries:read`: read entries in full, contacts and children's names\n included. Off unless the owner grants it.\n"