SendSeven GmbH User Inbox Access API

Manage which team members can access specific custom inboxes.

GitHub OpenAPI

Operations 5

GET /api/v1/users/{user_id}/inbox-access Get per-user inbox access settings #
PUT /api/v1/users/{user_id}/inbox-access Update per-user inbox access settings #
GET /api/v1/users/me/contact-visibility Get my effective contact visibility #
GET /api/v1/users/{user_id}/tags List a team member's tags #
PUT /api/v1/users/{user_id}/tags Replace a team member's tags #

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-user-inbox-access-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-user-inbox-access-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven User Inbox Access API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: User Inbox Access
  description: Manage which team members can access specific custom inboxes.
paths:
  /api/v1/users/{user_id}/inbox-access:
    get:
      tags:
      - User Inbox Access
      summary: Get per-user inbox access settings
      description: 'Get the target user''s inbox-access mode + the inboxes they''re listed in.


        Returns 200 with ``{mode: ''all'', inbox_ids: []}`` for a freshly-added team

        member who has no overrides — ``mode`` defaults to ``''all''`` (PRIMARY

        server_default) and the SHARD grant list starts empty.


        Returns 404 if the target user is not a member of this tenant. We use 404

        rather than 403 to avoid leaking the existence of cross-tenant user IDs.


        **Required Scopes:** ``team:read``'
      operationId: get_user_inbox_access_api_v1_users__user_id__inbox_access_get
      security:
      - HTTPBearer: []
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInboxAccessResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - User Inbox Access
      summary: Update per-user inbox access settings
      description: 'Update the user''s mode + replace their per-inbox grants.


        Behaviour:

        - Validates target user is a member of this tenant (404 otherwise — using

        404 over 403 to avoid an existence oracle).

        - Validates every ``inbox_ids`` element belongs to this tenant (422

        otherwise).

        - Updates ``tenant_users.inbox_access_mode`` on PRIMARY.

        - Reconciles the user''s rows in ``custom_inbox_users`` on SHARD to the

        target set (delete grants no longer wanted, insert only missing ones).


        Cross-DB write contract:

        The mode lives on PRIMARY; the grants live on SHARD. We cannot wrap

        both writes in a single transaction. Order is PRIMARY first, then

        SHARD. If the SHARD write fails AFTER the PRIMARY commit, the user is

        left with the new mode but stale grants — we log loudly and re-raise

        so the client sees the failure (and the frontend can avoid

        invalidating its cache, prompting the operator to retry). A retry of

        the same PUT is idempotent because PRIMARY will already be at the

        target value and the SHARD reconcile only touches the delta (a

        re-grant of an already-present inbox is a no-op, not a 1062 collision).


        **Required Scopes:** ``team:update``'
      operationId: update_user_inbox_access_api_v1_users__user_id__inbox_access_put
      security:
      - HTTPBearer: []
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserInboxAccessUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInboxAccessResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/users/me/contact-visibility:
    get:
      tags:
      - User Inbox Access
      summary: Get my effective contact visibility
      description: 'The caller''s EFFECTIVE contact visibility level.


        ``level`` is ``all`` for admins, owners and workspace API tokens.

        ``limited`` is true when the ``reachable_only`` level actually hides

        contacts from the caller (clients show a notice then).


        **Required Scopes:** ``contacts:read``'
      operationId: get_my_contact_visibility_api_v1_users_me_contact_visibility_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MyContactVisibilityResponse'
      security:
      - HTTPBearer: []
  /api/v1/users/{user_id}/tags:
    get:
      tags:
      - User Inbox Access
      summary: List a team member's tags
      description: 'List the tags assigned to a team member.


        Member tags are used by custom inboxes with "specific members" access:

        members holding any of the inbox''s access tags can see the inbox.


        Returns 404 if the user is not a member of this workspace.


        **Required Scopes:** `team:read`'
      operationId: get_user_tags_api_v1_users__user_id__tags_get
      security:
      - HTTPBearer: []
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserTagsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - User Inbox Access
      summary: Replace a team member's tags
      description: 'Replace the full set of tags assigned to a team member.


        Send every tag the member should hold; tags not in ``tag_ids`` are

        removed, an empty list removes all. Re-sending the same set is a no-op.


        - 404 if the user is not a member of this workspace.

        - 422 if any ``tag_ids`` element is not a tag of this workspace.


        **Required Scopes:** `team:update`'
      operationId: update_user_tags_api_v1_users__user_id__tags_put
      security:
      - HTTPBearer: []
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserTagsUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserTagsResponse'
        '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
    UserInboxAccessUpdate:
      properties:
        mode:
          type: string
          enum:
          - all
          - restricted
          title: Mode
        inbox_ids:
          items:
            type: string
          type: array
          maxItems: 500
          title: Inbox Ids
        contact_history_visibility:
          anyOf:
          - type: string
            enum:
            - all
            - accessible_only
            - reachable_only
          - type: 'null'
          title: Contact History Visibility
      type: object
      required:
      - mode
      title: UserInboxAccessUpdate
      description: 'Request body for PUT ``/users/{user_id}/inbox-access``.


        Capped at 500 inbox_ids to match the per-inbox ACL replace endpoint

        (``InboxUsersUpdate``) and to bound EXISTS subquery cost downstream.


        ``contact_history_visibility`` is optional — when omitted, the existing

        value on the row is preserved (allowing legacy clients that don''t yet

        ship the new toggle to keep PUT-ing only ``mode`` + ``inbox_ids`` without

        inadvertently flipping the new column back to its default). Exception:

        a PUT that switches the member INTO ``restricted`` without the field

        stores ``accessible_only`` when the stored level is ``all`` (level 2 is

        the restricted default, CTO 2026-10-29; not forced later).'
    UserTagsUpdate:
      properties:
        tag_ids:
          items:
            type: string
          type: array
          maxItems: 100
          title: Tag Ids
      type: object
      title: UserTagsUpdate
      description: 'Replace the full set of tags held by a team member.


        An empty list removes every tag from the member.'
    MyContactVisibilityResponse:
      properties:
        level:
          type: string
          enum:
          - all
          - accessible_only
          - reachable_only
          title: Level
        limited:
          type: boolean
          title: Limited
      type: object
      required:
      - level
      - limited
      title: MyContactVisibilityResponse
      description: 'GET ``/users/me/contact-visibility``: the caller''s EFFECTIVE level.


        ``level`` is ``all`` for admins/owners and workspace tokens. ``limited``

        is true only when the ``reachable_only`` filter actually hides contacts

        (false when an accessible inbox has no contact rules, the workspace has

        no custom inboxes, or the plan has no custom inboxes).'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserTagsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/UserTagItem'
          type: array
          title: Items
      type: object
      title: UserTagsResponse
      description: Tags held by a team member.
    UserInboxAccessResponse:
      properties:
        mode:
          type: string
          enum:
          - all
          - restricted
          title: Mode
        inbox_ids:
          items:
            type: string
          type: array
          title: Inbox Ids
        contact_history_visibility:
          type: string
          enum:
          - all
          - accessible_only
          - reachable_only
          title: Contact History Visibility
          default: all
        rule_less_inbox_names:
          items:
            type: string
          type: array
          title: Rule Less Inbox Names
      type: object
      required:
      - mode
      title: UserInboxAccessResponse
      description: 'Current per-user inbox-access settings.


        Returned by GET ``/users/{user_id}/inbox-access``.


        ``contact_history_visibility`` is an INDEPENDENT toggle from ``mode``: it

        controls whether the contact detail page''s conversation history panel is

        filtered to channels the user has access to via their inbox memberships.

        Default ''all'' = no filter (preserves legacy behaviour).'
    UserTagItem:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        color:
          anyOf:
          - type: string
          - type: 'null'
          title: Color
      type: object
      required:
      - id
      - name
      title: UserTagItem
      description: A tag held by a team member.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer