meibo Invites API

Inviting families by email.

GitHub OpenAPI

Operations 1

POST /api/v1/directory/invites Invite families by email #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/meibo-io:meibo-io-invites-api"
All apis
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.

Get an API 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 Specification

meibo-io-invites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: meibo Invites 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: Invites
  description: Inviting families by email.
paths:
  /api/v1/directory/invites:
    parameters:
    - $ref: '#/components/parameters/Directory'
    post:
      operationId: sendInvites
      tags:
      - Invites
      summary: Invite families by email
      description: 'Emails each address an invite to the directory, from the owner''s storefront. It lets nobody in: whoever signs in with that address still has to get in another way, by a link, the email list or the directory being open, and an access request stays waiting for the owner. At most 20 addresses per request. The directory may send 200 invites in any 24 hours, and the invites the owner sends from the dashboard count too. Each invite stops counting 24 hours after it was sent. Every refusal but a `500` naming `sent` means nothing was emailed.'
      security:
      - directoryKey:
        - invites
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InviteRequest'
            examples:
              two:
                value:
                  emails: ana@example.com, ben@example.com
      responses:
        '200':
          description: Every address was emailed.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - type: object
                  properties:
                    data:
                      $ref: '#/components/schemas/InvitesSent'
              examples:
                sent:
                  value:
                    success: true
                    data:
                      sent:
                      - ana@example.com
                      - ben@example.com
        '400':
          description: '`emails` is missing or not a string, names no address or too many, or names something that is not an email address (listed in `invalid`). 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'
                invalid:
                  value:
                    error: Some of these are not email addresses.
                    invalid:
                    - ana
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: 'The key lacks `invites` (`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 invites scope.
                    reason: scope
                    scope: invites
                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 the directory, or the storefront its invites are sent from, is gone.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refusal'
              examples:
                notReached:
                  $ref: '#/components/examples/DirectoryNotReached'
                gone:
                  value:
                    error: Directory not found
        '409':
          description: 'Some addresses belong to people the owner removed or declined, listed in `removed`. Take them out to invite the others.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refusal'
              examples:
                removed:
                  value:
                    error: 'You removed or declined these people, so they cannot be invited: ben@example.com. Take them out of the list to invite the others. Nothing was emailed.'
                    removed:
                    - ben@example.com
        '429':
          description: 'Two conditions share this status. The directory''s invite cap, a `Refusal` whose `remaining` says how many more it may send now. Or the edge''s rate limit, a `WafBlock`, which never reached meibo.

            '
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/Refusal'
                - $ref: '#/components/schemas/WafBlock'
              examples:
                cap:
                  value:
                    error: This directory can send 3 more invites now, of at most 200 in any 24 hours. Nothing was emailed. Send 3 or fewer addresses.
                    remaining: 3
                waf:
                  $ref: '#/components/examples/WafBlock'
        '500':
          description: 'Nothing could be sent, or some addresses were emailed and others were not. In the second case `sent` and `failed` say which.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refusal'
              examples:
                partial:
                  value:
                    error: Some invites could not be sent.
                    sent:
                    - ana@example.com
                    failed:
                    - ben@example.com
components:
  schemas:
    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.

        '
    InviteRequest:
      type: object
      required:
      - emails
      properties:
        emails:
          type: string
          description: 'One string of addresses, separated by commas, semicolons or new lines. A list is refused. Blanks are dropped, and so are repeats, ignoring case. At most 20 addresses after that.

            '
    InvitesSent:
      type: object
      required:
      - sent
      properties:
        sent:
          type: array
          items:
            type: string
          description: Every address emailed, as parsed from `emails`.
    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.

        '
    SuccessEnvelope:
      type: object
      required:
      - success
      - data
      properties:
        success:
          type: boolean
          const: true
        data: {}
      description: Every success, `201` included. `data` is the operation's answer.
    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.
  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'
  examples:
    Suspended:
      summary: The owner's account is suspended
      value:
        error: This directory is suspended. Contact support.
        reason: suspended
    WafBlock:
      summary: Rate-limited at the edge
      value:
        error: Too Many Requests
        message: Rate limit exceeded. Please try again later.
    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
    DirectoryNotReached:
      summary: The key does not reach the directory named
      value:
        error: This API key does not reach that directory.
        reason: directory_not_reached
    Unauthorized:
      summary: No key, or a key that no longer works
      value:
        error: Invalid or expired API key
    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
  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"