SendSeven GmbH Invitations API

Invite new team members to your tenant with role-based access control.

GitHub OpenAPI

Operations 7

GET /api/v1/invitations Get tenant invitations #
POST /api/v1/invitations Create invitation #
POST /api/v1/invitations/{token}/accept Accept invitation #
POST /api/v1/invitations/{token}/decline Decline invitation #
PATCH /api/v1/invitations/{invitation_id} Update invitation #
DELETE /api/v1/invitations/{invitation_id} Delete (cancel) invitation #
POST /api/v1/invitations/{invitation_id}/resend Resend 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/sendseven-com:sendseven-com-invitations-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

sendseven-com-invitations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven Invitations API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: Invitations
  description: Invite new team members to your tenant with role-based access control.
paths:
  /api/v1/invitations:
    get:
      tags:
      - Invitations
      summary: Get tenant invitations
      description: 'Get all invitations for a tenant (requires ADMIN or OWNER)


        **🔐 Required Scopes:** `team:read`'
      operationId: get_tenant_invitations_api_v1_invitations_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationListResponse'
      security:
      - HTTPBearer: []
    post:
      tags:
      - Invitations
      summary: Create invitation
      description: 'Invite a user to join a tenant (requires ADMIN or OWNER role)


        **🔐 Required Scopes:** `team:create`'
      operationId: create_invitation_api_v1_invitations_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvitationCreate'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/v1/invitations/{token}/accept:
    post:
      tags:
      - Invitations
      summary: Accept invitation
      description: Accept invitation with security hardening (rate limited, email verified)
      operationId: accept_invitation_api_v1_invitations__token__accept_post
      security:
      - HTTPBearer: []
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/InvitationAcceptRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationAcceptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/invitations/{token}/decline:
    post:
      tags:
      - Invitations
      summary: Decline invitation
      description: Decline an invitation to join a tenant
      operationId: decline_invitation_api_v1_invitations__token__decline_post
      security:
      - HTTPBearer: []
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationDeclineResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/invitations/{invitation_id}:
    patch:
      tags:
      - Invitations
      summary: Update invitation
      description: 'Change the roles and/or the member access settings of a pending or expired invitation. Settings are merged: only the fields you send change. The token, expiry date and email stay the same and no email is sent.


        **🔐 Required Scopes:** `team:create`'
      operationId: update_invitation_api_v1_invitations__invitation_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: invitation_id
        in: path
        required: true
        schema:
          type: string
          title: Invitation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvitationUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Invitations
      summary: Delete (cancel) invitation
      description: 'Delete/cancel an invitation in any status (requires ADMIN or OWNER)


        **🔐 Required Scopes:** `team:create`'
      operationId: delete_invitation_api_v1_invitations__invitation_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: invitation_id
        in: path
        required: true
        schema:
          type: string
          title: Invitation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/invitations/{invitation_id}/resend:
    post:
      tags:
      - Invitations
      summary: Resend invitation
      description: 'Resend a pending or expired invitation with a new token and expiry. The invited roles must be within your own permissions, exactly as when creating an invitation. Access settings are kept as they are.


        **🔐 Required Scopes:** `team:create`'
      operationId: resend_invitation_api_v1_invitations__invitation_id__resend_post
      security:
      - HTTPBearer: []
      parameters:
      - name: invitation_id
        in: path
        required: true
        schema:
          type: string
          title: Invitation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationResendResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    DeleteResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether deletion succeeded
          default: true
        id:
          type: string
          title: Id
          description: ID of deleted resource
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
          default: Resource deleted successfully
      type: object
      required:
      - id
      title: DeleteResponse
      description: Response for resource deletion
    InvitationAcceptResponse:
      properties:
        message:
          type: string
          title: Message
        tenant_id:
          type: string
          title: Tenant Id
        tenant_name:
          type: string
          title: Tenant Name
        role:
          type: string
          title: Role
      type: object
      required:
      - message
      - tenant_id
      - tenant_name
      - role
      title: InvitationAcceptResponse
      description: Schema for accepting an invitation
    InvitationMemberSettings:
      properties:
        inbox_access_mode:
          anyOf:
          - type: string
            enum:
            - all
            - restricted
          - type: 'null'
          title: Inbox Access Mode
        inbox_ids:
          anyOf:
          - items:
              type: string
              maxLength: 64
              minLength: 1
            type: array
            maxItems: 500
          - type: 'null'
          title: Inbox Ids
        contact_history_visibility:
          anyOf:
          - type: string
            enum:
            - all
            - accessible_only
            - reachable_only
          - type: 'null'
          title: Contact History Visibility
        tag_ids:
          anyOf:
          - items:
              type: string
              maxLength: 64
              minLength: 1
            type: array
            maxItems: 100
          - type: 'null'
          title: Tag Ids
        ai_suggestions_enabled:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Ai Suggestions Enabled
        account_billing_access:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Account Billing Access
      additionalProperties: false
      type: object
      title: InvitationMemberSettings
      description: "Per-member access settings carried by a pending invitation.\n\nThe same settings as Settings -> Team -> member sheet, applied to the new\nmember when the invitation is accepted. Every field is optional; an omitted\nor null field keeps the default for new members:\n\n- ``inbox_access_mode``: ``all`` (default) or ``restricted`` (sees only the\n  inboxes in ``inbox_ids``).\n- ``inbox_ids``: custom inbox ids granted to the member; only used with\n  ``inbox_access_mode='restricted'``.\n- ``contact_history_visibility``: contact visibility level, ``all``\n  (default), ``accessible_only`` or ``reachable_only``. With\n  ``inbox_access_mode='restricted'`` and no level, ``accessible_only`` is\n  stored (pre-selected default, editable).\n- ``tag_ids``: member tags (skills) assigned on accept. Default: none.\n- ``ai_suggestions_enabled``: default true.\n- ``account_billing_access``: account-wide usage access. Default false;\n  only the billing account owner may grant it."
    InvitationAcceptRequest:
      properties:
        first_name:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: First Name
          description: Your first name
        last_name:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Last Name
          description: Your last name
      type: object
      title: InvitationAcceptRequest
      description: 'Optional body for POST /invitations/{token}/accept.


        The invitee''s first and last name, OPTIONAL: without it the accept

        succeeds and the display name is untouched (the one-time profile prompt

        asks later). A name that is sent must be valid (422 ``invalid_name``).

        Validation (trim, 1..100 chars, no "@", at least one letter) lives in

        ``app.core.user_name``.'
    InvitationRoleEnum:
      type: string
      enum:
      - owner
      - admin
      - viewer
      - marketing_agent
      - support_agent
      - billing_admin
      - developer
      - analyst
      - content_manager
      - designer
      title: InvitationRoleEnum
      description: 'Allowed invitation roles - maps to RBAC system roles.


        There are exactly 7 system roles (migration 059, Jan 2026, consolidated the

        original 10 and renamed them SCREAMING_SNAKE -> display case). The slugs below

        map onto them in ``app/api/invitations.py::role_mapping``:


        - OWNER            -> "Owner"          Full access to everything (*:*)

        - ADMIN            -> "Admin"          Full access EXCEPT billing (zero billing scopes)

        - SUPPORT_AGENT    -> "Support Agent"  Conversations, tickets, contacts, knowledge base

        - MARKETING_AGENT  -> "Marketing"      Campaigns, email, lists, contacts

        - VIEWER           -> "Viewer"         Read-only access to all resources

        - BILLING_ADMIN    -> "Billing"        Billing management only

        - DEVELOPER        -> "Developer"      API tokens, webhooks, technical settings


        ANALYST, CONTENT_MANAGER and DESIGNER are RETIRED roles. They are kept in this

        enum only so old pending invitations still resolve, and they fold onto a

        surviving role (analyst/designer -> Viewer, content_manager -> Marketing).

        Do NOT offer them in new UI or docs.


        New integrations should pass ``role_id`` (an RBAC Role UUID from ``GET /roles``)

        instead of a slug -- that path also supports tenant-created custom roles.'
    InvitationDeclineResponse:
      properties:
        message:
          type: string
          title: Message
      type: object
      required:
      - message
      title: InvitationDeclineResponse
      description: Schema for declining an invitation
    InvitationStatusEnum:
      type: string
      enum:
      - pending
      - accepted
      - declined
      - expired
      title: InvitationStatusEnum
      description: Invitation status
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InvitationCreate:
      properties:
        email:
          type: string
          format: email
          title: Email
          description: Email address to invite
        role_ids:
          anyOf:
          - items:
              type: string
              maxLength: 64
              minLength: 1
            type: array
            maxItems: 20
            minItems: 1
          - type: 'null'
          title: Role Ids
          description: RBAC Role UUIDs to assign on accept (1-20, system OR this tenant's custom roles; duplicates are ignored). The first one is the primary role. Takes precedence over `role_id` and `role`.
        role_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Role Id
          description: RBAC Role UUID to assign (system OR this tenant's custom role). Get valid ids from GET /roles. Preferred over the legacy `role` field.
        role:
          anyOf:
          - $ref: '#/components/schemas/InvitationRoleEnum'
          - type: 'null'
          description: DEPRECATED legacy role slug (owner, admin, marketing_agent, support_agent, viewer, billing_admin, developer, analyst, content_manager, designer). Ignored when `role_id` is set.
        member_settings:
          anyOf:
          - $ref: '#/components/schemas/InvitationMemberSettings'
          - type: 'null'
          description: Optional access settings applied to the member when they accept (inbox access, contact history, member tags, AI suggestions, account-wide usage access). Omit for the defaults.
      type: object
      required:
      - email
      title: InvitationCreate
      description: 'Schema for creating an invitation.


        Role assignment supports BOTH system roles and tenant-created custom roles

        via ``role_ids`` (one or more RBAC Role UUIDs from ``GET /roles``; the

        first is the primary role) or the single ``role_id``. The legacy ``role``

        slug enum is retained for backwards compatibility. Precedence:

        ``role_ids`` > ``role_id`` > ``role``.'
    InvitationResponse:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        email:
          type: string
          title: Email
        invited_role:
          type: string
          title: Invited Role
        role_ids:
          items:
            type: string
          type: array
          title: Role Ids
        invited_by_user_id:
          type: string
          title: Invited By User Id
        invitation_token:
          type: string
          title: Invitation Token
        status:
          $ref: '#/components/schemas/InvitationStatusEnum'
        expires_at:
          type: string
          format: date-time
          title: Expires At
        accepted_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Accepted At
        declined_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Declined At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
        tenant_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Tenant Name
        invited_by_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Invited By Name
        member_settings:
          anyOf:
          - $ref: '#/components/schemas/InvitationMemberSettings'
          - type: 'null'
      type: object
      required:
      - id
      - tenant_id
      - email
      - invited_role
      - invited_by_user_id
      - invitation_token
      - status
      - expires_at
      - created_at
      title: InvitationResponse
      description: Schema for invitation response
    InvitationResendResponse:
      properties:
        message:
          type: string
          title: Message
        invitation:
          $ref: '#/components/schemas/InvitationResponse'
      type: object
      required:
      - message
      - invitation
      title: InvitationResendResponse
      description: Schema for resending an invitation
    InvitationUpdate:
      properties:
        role_ids:
          anyOf:
          - items:
              type: string
              maxLength: 64
              minLength: 1
            type: array
            maxItems: 20
            minItems: 1
          - type: 'null'
          title: Role Ids
        role_id:
          anyOf:
          - type: string
            maxLength: 64
            minLength: 1
          - type: 'null'
          title: Role Id
        member_settings:
          anyOf:
          - $ref: '#/components/schemas/InvitationMemberSettings'
          - type: 'null'
      additionalProperties: false
      type: object
      title: InvitationUpdate
      description: 'Body of PATCH /invitations/{invitation_id}.


        ``role_ids`` replaces the invited roles (``role_id`` = a single role; not

        both). Same checks as creating an invitation. ``member_settings`` is

        MERGED: only the fields present change, a field sent as ``null`` goes back

        to its default, omitted fields keep their value, and ``member_settings:

        null`` resets every field. The token, expiry date and email are never

        changed and no email is sent.'
    InvitationListResponse:
      properties:
        invitations:
          items:
            $ref: '#/components/schemas/InvitationResponse'
          type: array
          title: Invitations
        total:
          type: integer
          title: Total
      type: object
      required:
      - invitations
      - total
      title: InvitationListResponse
      description: Schema for list of invitations
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer