Mode Invites API

The Invites API from Mode — 1 operation(s) for invites.

Operations 1

POST /{workspace}/invites Create an invitation #

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/mode-invites-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mode-invites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 0.0.1
  title: Mode Account Invites API
  description: 'Mode provides a REST API for many common operations, such as:


    * Listing spaces and reports

    * Running reports

    * Downloading query results


    ## Authentication


    For most Mode API calls, the client must supply an API token and secret for

    HTTP basic authentication.


    If authentication is required for a given resource, unauthenticated requests

    will result in a `401 Unauthorized` response.


    [Create and Manage API Tokens](https://modeanalytics.com/settings/access_tokens)

    '
  termsOfService: https://mode.com/tos/
  contact:
    name: Mode API Team
    email: support@modeanalytics.com
  license:
    name: MIT
servers:
- url: https://modeanalytics.com/api
security:
- accessTokenAuth: []
tags:
- name: Invites
paths:
  /{workspace}/invites:
    x-summary: Invite
    post:
      operationId: createOrganizationInvite
      summary: Create an invitation
      description: Creates a `User` and invites `User` to `Workspace`
      parameters:
      - name: workspace
        in: path
        description: '`Workspace` username'
        required: true
        schema:
          type: string
      responses:
        '401':
          description: Unauthorized
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '404':
          description: '`Membership` not found for `Workspace`'
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '403':
          description: Forbidden
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/Forbidden'
        '400':
          description: Bad request
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '200':
          description: '`WorkspaceInvite` response'
          content:
            application/hal+json:
              schema:
                $ref: '#/components/schemas/Invite'
      tags:
      - Invites
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInviteRequestBody'
components:
  schemas:
    InviteEmbeds: {}
    Forbidden:
      required:
      - id
      - message
      properties:
        id:
          type: string
          enum:
          - forbidden
        message:
          type: string
    BadRequest:
      required:
      - id
      - message
      properties:
        id:
          type: string
          enum:
          - bad_request
        message:
          type: string
    Unauthorized:
      required:
      - id
      - message
      properties:
        id:
          type: string
          enum:
          - unauthorized
        message:
          type: string
    InviteLinks:
      properties:
        inviter:
          $ref: '#/components/schemas/Link'
        invitee:
          $ref: '#/components/schemas/Link'
        web_self_resend:
          $ref: '#/components/schemas/Link'
      required:
      - inviter
      - web_self_resend
    NotFound:
      required:
      - id
      - message
      properties:
        id:
          type: string
          enum:
          - not_found
        message:
          type: string
    CreateInviteRequestBody:
      required:
      - invite
      type: object
      properties:
        invite:
          required:
          - invitee
          - message
          type: object
          properties:
            invitee:
              required:
              - email
              type: object
              properties:
                email:
                  type: string
                  example: harold.ceramicist@example.com
            message:
              type: string
              example: You are an analyst, Harry!
    Link:
      required:
      - href
      properties:
        href:
          type: string
        templated:
          type: boolean
          default: false
    Invite:
      properties:
        email:
          type: string
        message:
          type: string
        inviter_id:
          type: string
        invitee_id:
          type: string
        organization_id:
          type: string
        limited:
          type: string
        sent_at:
          type: string
        resent_at:
          type: string
        clicked_at:
          type: string
        accepted_at:
          type: string
        expires_at:
          type: string
        created_at:
          type: string
        _links:
          $ref: '#/components/schemas/InviteLinks'
        _embedded:
          $ref: '#/components/schemas/InviteEmbeds'
      required:
      - _links
      - email
      - message
      - inviter_id
      - invitee_id
      - organization_id
      - limited
      - expires_at
      - created_at
  securitySchemes:
    accessTokenAuth:
      type: http
      scheme: basic