SendSeven GmbH Tags API

Create color-coded tags and apply them to contacts and conversations for organization and filtering.

GitHub OpenAPI

Operations 9

POST /api/v1/tags Create Tag #
GET /api/v1/tags List Tags #
GET /api/v1/tags/{tag_id} Get Tag #
PUT /api/v1/tags/{tag_id} Update Tag #
DELETE /api/v1/tags/{tag_id} Delete Tag #
POST /api/v1/conversations/{conversation_id}/tags/{tag_id} Add Tag To Conversation #
DELETE /api/v1/conversations/{conversation_id}/tags/{tag_id} Remove Tag From Conversation #
POST /api/v1/contacts/{contact_id}/tags/{tag_id} Add Tag To Contact #
DELETE /api/v1/contacts/{contact_id}/tags/{tag_id} Remove Tag From Contact #

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-tags-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-tags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SendSeven Tags API
  description: Unified messaging API for WhatsApp, Telegram, SMS, and more
  version: '20261124.1227'
servers:
- url: https://api.sendseven.com
  description: Production
tags:
- name: Tags
  description: Create color-coded tags and apply them to contacts and conversations for organization and filtering.
paths:
  /api/v1/tags:
    post:
      tags:
      - Tags
      summary: Create Tag
      description: 'Create a new tag.


        Tags are used to categorize contacts and conversations. Each tag must have

        a unique name within the tenant.


        **Required Scopes:** `tags:create` (management scope: tags can grant custom-inbox access, so agents holding only contacts/conversations:update cannot create/rename/delete them)'
      operationId: create_tag_api_v1_tags_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Tags
      summary: List Tags
      description: 'List all tags for the tenant with pagination.


        Returns a paginated list of tags, optionally filtered by search term.

        With `include_usage=true` every item also carries `contact_count` and

        `conversation_count` (computed for the returned page only).


        **Required Scopes:** `contacts:read` OR `conversations:read`'
      operationId: list_tags_api_v1_tags_get
      security:
      - HTTPBearer: []
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number (1-indexed)
          default: 1
          title: Page
        description: Page number (1-indexed)
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Page Size
        description: Items per page
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Search by tag name
          title: Search
        description: Search by tag name
      - name: include_usage
        in: query
        required: false
        schema:
          type: boolean
          description: When true, each tag also returns `contact_count` and `conversation_count` (how many contacts / conversations carry it; 0 when unused). Off by default to keep the list fast.
          default: false
          title: Include Usage
        description: When true, each tag also returns `contact_count` and `conversation_count` (how many contacts / conversations carry it; 0 when unused). Off by default to keep the list fast.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/TagListWithUsageResponse'
                - $ref: '#/components/schemas/TagListResponse'
                title: Response List Tags Api V1 Tags Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/tags/{tag_id}:
    get:
      tags:
      - Tags
      summary: Get Tag
      description: 'Get a specific tag by ID.


        **Required Scopes:** `contacts:read` OR `conversations:read`'
      operationId: get_tag_api_v1_tags__tag_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: tag_id
        in: path
        required: true
        schema:
          type: string
          title: Tag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Tags
      summary: Update Tag
      description: 'Update a tag.


        All fields are optional. Only provided fields will be updated.


        **Required Scopes:** `tags:update` (management scope: tags can grant custom-inbox access, so agents holding only contacts/conversations:update cannot create/rename/delete them)'
      operationId: update_tag_api_v1_tags__tag_id__put
      security:
      - HTTPBearer: []
      parameters:
      - name: tag_id
        in: path
        required: true
        schema:
          type: string
          title: Tag Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Tags
      summary: Delete Tag
      description: 'Delete a tag.


        This will also remove the tag from all contacts and conversations.


        Returns **409** (`code: TAG_IN_USE_BY_INBOX`, `details.inboxes`) while a

        Custom Inbox filter rule uses the tag: deleting it would silently drop the

        rule and widen that inbox to every conversation on its channels.


        **Required Scopes:** `tags:delete` (management scope: tags can grant custom-inbox access, so agents holding only contacts/conversations:update cannot create/rename/delete them)'
      operationId: delete_tag_api_v1_tags__tag_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: tag_id
        in: path
        required: true
        schema:
          type: string
          title: Tag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/conversations/{conversation_id}/tags/{tag_id}:
    post:
      tags:
      - Tags
      summary: Add Tag To Conversation
      description: 'Add a tag to a conversation.


        If the tag is already assigned to the conversation, this operation is idempotent.


        **Required Scopes:** `conversations:update`'
      operationId: add_tag_to_conversation_api_v1_conversations__conversation_id__tags__tag_id__post
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      - name: tag_id
        in: path
        required: true
        schema:
          type: string
          title: Tag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagAssignmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Tags
      summary: Remove Tag From Conversation
      description: 'Remove a tag from a conversation.


        **Required Scopes:** `conversations:update`'
      operationId: remove_tag_from_conversation_api_v1_conversations__conversation_id__tags__tag_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: conversation_id
        in: path
        required: true
        schema:
          type: string
          title: Conversation Id
      - name: tag_id
        in: path
        required: true
        schema:
          type: string
          title: Tag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagAssignmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/contacts/{contact_id}/tags/{tag_id}:
    post:
      tags:
      - Tags
      summary: Add Tag To Contact
      description: 'Add a tag to a contact.


        If the tag is already assigned to the contact, this operation is idempotent.


        **Required Scopes:** `contacts:update`'
      operationId: add_tag_to_contact_api_v1_contacts__contact_id__tags__tag_id__post
      security:
      - HTTPBearer: []
      parameters:
      - name: contact_id
        in: path
        required: true
        schema:
          type: string
          title: Contact Id
      - name: tag_id
        in: path
        required: true
        schema:
          type: string
          title: Tag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagAssignmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Tags
      summary: Remove Tag From Contact
      description: 'Remove a tag from a contact.


        **Required Scopes:** `contacts:update`'
      operationId: remove_tag_from_contact_api_v1_contacts__contact_id__tags__tag_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: contact_id
        in: path
        required: true
        schema:
          type: string
          title: Contact Id
      - name: tag_id
        in: path
        required: true
        schema:
          type: string
          title: Tag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagAssignmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaginationMeta:
      properties:
        total:
          type: integer
          title: Total
          description: Total number of items matching the query
        page:
          type: integer
          minimum: 1.0
          title: Page
          description: Current page number (1-indexed)
        page_size:
          type: integer
          minimum: 1.0
          title: Page Size
          description: Number of items per page
        total_pages:
          type: integer
          title: Total Pages
          description: Total number of pages
        has_next:
          type: boolean
          title: Has Next
          description: Whether there are more pages
        has_prev:
          type: boolean
          title: Has Prev
          description: Whether there are previous pages
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
          description: Cursor for next page (if using cursor pagination)
        prev_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Prev Cursor
          description: Cursor for previous page
      type: object
      required:
      - total
      - page
      - page_size
      - total_pages
      - has_next
      - has_prev
      title: PaginationMeta
      description: 'Pagination metadata for list responses.


        Supports both offset-based and page-based pagination.

        Clients should use page/page_size for new implementations.'
    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
    TagCreate:
      properties:
        name:
          type: string
          maxLength: 50
          minLength: 1
          title: Name
          description: Tag name
        color:
          anyOf:
          - type: string
            pattern: ^#[0-9A-Fa-f]{6}$
          - type: 'null'
          title: Color
          description: 'Hex color code (e.g., #FF0000)'
        description:
          anyOf:
          - type: string
            maxLength: 255
          - type: 'null'
          title: Description
          description: Tag description
      type: object
      required:
      - name
      title: TagCreate
      description: Schema for creating a new tag
      example:
        color: '#EF4444'
        description: High-value customers
        name: VIP
    SuccessResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the operation succeeded
          default: true
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
          description: Optional success message
      type: object
      title: SuccessResponse
      description: 'Standard success response for operations without data return.


        Use for: DELETE operations, bulk updates, toggles, etc.'
      example:
        message: Resource deleted successfully
        success: true
    TagAssignmentResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the operation succeeded
          default: true
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
          description: Optional success message
      type: object
      title: TagAssignmentResponse
      description: Response for tag assignment operations (add/remove to contact/conversation)
      example:
        message: Tag added to contact successfully
        success: true
    TagUpdate:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 50
            minLength: 1
          - type: 'null'
          title: Name
          description: Tag name
        color:
          anyOf:
          - type: string
            pattern: ^#[0-9A-Fa-f]{6}$
          - type: 'null'
          title: Color
          description: 'Hex color code (e.g., #FF0000)'
        description:
          anyOf:
          - type: string
            maxLength: 255
          - type: 'null'
          title: Description
          description: Tag description
      type: object
      title: TagUpdate
      description: Schema for updating a tag (all fields optional)
      example:
        color: '#10B981'
        name: Premium VIP
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TagListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/TagResponse'
          type: array
          title: Items
          description: List of items for this page
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
          description: Pagination metadata
      type: object
      required:
      - items
      - pagination
      title: TagListResponse
      description: "Paginated list of tags.\n\nExample response:\n```json\n{\n    \"items\": [...],\n    \"pagination\": {\n        \"total\": 25,\n        \"page\": 1,\n        \"page_size\": 20,\n        \"total_pages\": 2,\n        \"has_next\": true,\n        \"has_prev\": false\n    }\n}\n```"
    TagResponse:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier (UUID)
        tenant_id:
          type: string
          title: Tenant Id
          description: Tenant this resource belongs to
        name:
          type: string
          title: Name
          description: Tag name
        color:
          anyOf:
          - type: string
          - type: 'null'
          title: Color
          description: 'Hex color code (e.g., #FF0000)'
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: Tag description
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the tag was created
      type: object
      required:
      - id
      - tenant_id
      - name
      - created_at
      title: TagResponse
      description: 'Full tag response with all fields.


        Note: Tags only have created_at, no updated_at per current model.'
      example:
        color: '#EF4444'
        created_at: '2025-01-15T10:30:00Z'
        description: High-value customers
        id: t1a2b3c4-d5e6-f7g8-h9i0-j1k2l3m4n5o6
        name: VIP
        tenant_id: tenant-123
    TagListWithUsageResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/TagWithUsageResponse'
          type: array
          title: Items
          description: List of items for this page
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
          description: Pagination metadata
      type: object
      required:
      - items
      - pagination
      title: TagListWithUsageResponse
      description: 'Paginated list of tags with usage counts (``include_usage=true``).


        Same envelope as ``TagListResponse``; each item additionally carries

        ``contact_count`` and ``conversation_count`` (0 when unused).'
    TagWithUsageResponse:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier (UUID)
        tenant_id:
          type: string
          title: Tenant Id
          description: Tenant this resource belongs to
        name:
          type: string
          title: Name
          description: Tag name
        color:
          anyOf:
          - type: string
          - type: 'null'
          title: Color
          description: 'Hex color code (e.g., #FF0000)'
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: Tag description
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the tag was created
        contact_count:
          type: integer
          minimum: 0.0
          title: Contact Count
          description: Number of contacts carrying this tag (0 when unused)
        conversation_count:
          type: integer
          minimum: 0.0
          title: Conversation Count
          description: Number of conversations carrying this tag (0 when unused)
      type: object
      required:
      - id
      - tenant_id
      - name
      - created_at
      - contact_count
      - conversation_count
      title: TagWithUsageResponse
      description: 'Tag plus usage counts (returned by ``GET /tags?include_usage=true``).


        The counts are REQUIRED on purpose: ``GET /tags`` declares

        ``Union[TagListWithUsageResponse, TagListResponse]``, and a default here

        would make plain tags validate as this variant, leaking zero counts into

        the default (include_usage=false) response.'
      example:
        color: '#EF4444'
        created_at: '2025-01-15T10:30:00Z'
        description: High-value customers
        id: t1a2b3c4-d5e6-f7g8-h9i0-j1k2l3m4n5o6
        name: VIP
        tenant_id: tenant-123
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer