burger
infomaniak
infomaniak
cloud-computing-logo
Cloud Computing
web-domain-logo
Web & Domains
event-marketing-logo
Events & Marketing
  • Our products
    • Collaborative tools icon chevron
    • Web & Domains icon chevron
    • Cloud Computing icon chevron
    • Events & Marketing icon chevron
    • Streaming icon chevron

      ksuiteCollaborative suite

      Discover the collaborative suite → Discover →
    • kSuite Professional email, sovereign cloud and AI for sustainable performance
    • kSuite The suite for secure communication, storage and sharing
    • kdrive
      kDrive Store, collaborate and share your files
    • mail service
      Mail Service Create your email addresses with your domain
    • kChat
      kChat Communicate live with your teams
    • kmeet
      kMeet Organise your meetings online in complete security
    • swisstransfer
      SwissTransfer Send your files up to 50 GB free of charge.
    • kpaste
      kPaste Share and encrypt your sensitive information
    • ksuite
      Custom Brand Control the brand image of your products
    • kChat
      Chk Link reducer & QR code generator
      Find the web hosting solution you need
    • Domain name
      Domain name Reserve your domain name at the best price
    • Site Creator
      Site Creator Create your website with ease
    • web hosting
      Web Hosting Create your website with over 100 CMS
    • web hosting
      Wordpress Hosting Create your WordPress website easily
    • Cloud Server
      Cloud Server Power up your sites with guaranteed resources
    • SSL Certificat
      SSL certificates Secure your websites with an EV or DV certificate
    • Options
    • Domain privacy
      Domain Privacy Protect your domains’ private data
    • DNS Fast Anycast
      FastAnycast DNS Speed up your site access times
    • Dyn DNS
      DynDNS Access your devices remotely
    • Dyn DNS
      Renewal Warranty Secure your domains against loss and theft
      Find the right Cloud Computing solution

      Cloud services

    • public cloud
      Public Cloud (IaaS) Create your projects in a high-end, ultra-competitive Cloud
    • Cloud Server
      VPS Cloud Create a Windows / Linux server
    • Kubernetes service Deploy your containerised apps on a large scale.
    • VPS Lite
      VPS Lite Create a Windows/Linux server at a low cost
    • Database Service Manage your databases with a managed solution
    • jelastic cloud
      Jelastic Cloud (PaaS) Create your own customised environments
    • Other services

    • llm api
      AI Tools Boost your productivity with our sovereign AI
    • swiss backup
      Swiss Backup Back up your devices in the Cloud
    • nas synology
      NAS Synology Rent a NAS in our secure data centers
    • High availibility
      Very High Availability Create a multi-data center infrastructure with customised SLAs
    • Housing
      Housing Install your servers in our data centers
    • Auth Add a privacy-friendly login method to your apps
      Infomaniak Events, the independent local events portal
      Online ticketing service with a wide choice of concerts, shows and events.
    • online shop
      Ticketing Create your ticketing service and sell tickets
    • kdrive
      Access Control Control access to your events with ease
    • kdrive
      Guest manager Automate your event invitations
    • kdrive
      Newsletter Send your newsletters at competitive prices
    • Streaming radio
      Streaming radio Create and broadcast your own live radio station online
    • streaming video
      Video-Streaming Create and broadcast live events and TV online
    • VOD and AOD
      VOD & AOD service Host and broadcast your recordings without limits
  • Resources
    documentation icon Documentation
    Guides & tutorials
    API documentation
    special offers icon Special offers
    Get started for free
    Student programme
    Become an affiliate
    partner program icon Partner programme
    Find a partner
    Become a partner
    support icon Support & contact
    Contact Support
    Premium support - 24/7
    Contact our sales department
    Hiring an expert
    Migrate to Infomaniak
  • About us
    forest
    icon Ecological commitment
    We pollute. But we are taking action to reduce the footprint of our services and infrastructure
    Discover our commitment →
    icon About Infomaniak
    Our vision, our values
    Our teams
    Infomaniak is recruiting
    Press and communication
    Blog and news
    icon Security
    Data confidentiality
    Bug Bounty Programme
  • Get started for free
    Sign in
  • search-icon
    close-icon
      icon

      Would your needs exceed our solutions? To find out, contact us so that we can advise you personally.

      Our flagship products:
  • search-icon
  • Get started for free
    Sign in
Price Price
Knowledge base

1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!

Knowledge base Connect external applications to kChat

    Connect external applications to kChat

    This translation is out of date. Please see the French version for the most up-to-date information.

    This guide allows you to manage external applications with kChat using webhooks.

     

    Introduction

    • A webhook is a method that allows an application to be immediately notified when a particular event occurs in another application, rather than constantly asking that application if something new has happened (which is called "polling").
      • Outgoing webhook: kChat communicates information to other apps when an event occurs in kChat.
      • Incoming webhook: kChat receives information from other apps to trigger actions within kChat.
    • It is not possible to import the chat history from another application (Slack, Teams, Jabber, etc.) or from another Organization.

     

    Access the kChat webhooks interface

    Prerequisites

    • Not to be an external user (they will not see the menu Integrations).

    To set up a webhook, find self-hosted or third-party applications and integrations:

    1. Click here‍ to access the Web app kChat (online service kchat.infomaniak.com) or open the desktop app kChat (desktop application for macOS / Windows / Linux).
    2. Click on the New icon ‍ next to the name of your kChat organization.
    3. Click on Integrations.
    4. Access the categories:

     

    Example of integration

    • Infomaniak calendar event reminder on kChat

     

    Create a simple incoming webhook

    To do this:

    1. Click on the Incoming Webhooks category.
    2. Click on the blue button Add incoming webhooks:
    3. Add a name and a description (max 500 characters) for the webhook.
    4. Select the channel that will receive the messages
    5. Save to get the URL (do not share it publicly); example “https://your-server-kchat.xyz/hooks/xxx-key-generated-xxx”.

     

    Using the webhook

    On the application that needs to post on kChat:

    1. Adjust the code below according to the URL obtained:

      POST /hooks/xxx-key-generated-xxx HTTP/1.1
      Host: your-server-kchat.xyz
      Content-Type: application/json
      Content-Length: 63
      {
          "text": "Hello, text1
      Text2."
      }
    2. Optionally, use the same request but with curl (to test from a Terminal application (command line interface, CLI) on your device):
      curl -i -X POST -H 'Content-Type: application/json' -d '{"text": "Hello, text1 Text2."}' https://your-server-kchat.xyz/hooks/xxx-key-generated-xxx

    If no Content-Type is not defined, the body of the request must be preceded by TRANSLATION_ERROR like this:

    payload={"text": "Hello, text1 Text2."}

    A successful request will receive the following response:

    HTTP/1.1 200 OK	
    Content-Type: application/json	
    X-Version-Id: 4.7.1.dev.12799dvd77e172e8a2eba0f4041ec1471.false	
    Date: Sun, 01 Jun 2023 17:00:00 GMT	
    Content-Length: 58	
    	
    {	
        "id":"x",	
        "create_at":1713198308869,	
        "update_at":1713198308869,	
        "delete_at":0,	
        "user_id":"x",	
        "channel_id":"x",	
        "root_id":"",	
        "original_id":"",	
        "participants":null,	
        "message":"test",	
        "type":"",	
        "props":{	
            "override_username":"webhook",	
            "override_icon_url":null,	
            "override_icon_emoji":null,	
            "webhook_display_name":"test",	
            "attachments":[	
    	
            ],	
            "card":null,	
            "from_webhook":"true"	
        },	
        "hashtags":null,	
        "metadata":{	
            "embeds":[	
                {	
                    "type":"message_attachment"	
                }	
            ],	
            "files":[	
    	
            ],	
            "reactions":[	
    	
            ]	
        },	
        "file_ids":null,	
        "has_reactions":false,	
        "edit_at":0,	
        "is_pinned":false,	
        "remote_id":null,	
        "reply_count":0,	
        "pending_post_id":null,	
        "is_following":false	
    }

     

    If you want to have the same response format as Slack:

    HTTP/1.1 200 OK
    Content-Type: text/plain
    X-Request-Id: hoan69ws7rp5xj7wu9rmystry
    X-Version-Id: 4.7.1.dev.12799dvd77e172e8a2eba0f4041ec1471.false
    Date: Sun, 01 Jun 2023 17:00:00 GMT
    Content-Length: 2
    ok

    You must add ?slack_return_format=true to the webhook URL.

     

     
    The BOT indication is added next to the username on kChat for security reasons.

     

    Settings

    In addition to the text field, here is the complete list of supported parameters:

    ParameterDescriptionRequired
    textMessage in Markdown format to display in the post.
    To trigger notifications, use “@<username>”, “@channel” and “@here” as you would in other kChat messages.
    If attachments is not defined, yes
    channelReplaces the channel in which the message is posted. Use the channel name, not the display name, for example “town-square”, not “Place de la ville”.
    Use "@" followed by a username to send a direct message.
    By default, uses the channel set during webhook creation.
    The webhook can post in any public or private channel where the webhook creator is present.
    Posts in direct messages will appear in the direct message between the targeted user and the webhook creator.
    No
    usernameReplaces the username under which the message is posted.
    By default, uses the username set during webhook creation; if no username was set during creation, use webhook.
    The configuration parameter Allow integrations to replace usernames must be enabled for the username replacement to take effect.
    No
    icon_urlReplaces the profile picture with which the message is posted.
    By default, uses the URL defined during webhook creation; if no icon was defined during creation, the standard webhook icon (‍) is displayed.
    The configuration parameter Allow integrations to replace profile picture icons must be enabled for the icon replacement to take effect.
    No
    icon_emojiReplaces the profile picture and the parameter icon_url.
    By default, nothing is set upon webhook creation.
    The expected value is the name of an emoji as it is typed in a message, with or without colons (:).
    The configuration parameter Allow integrations to replace profile picture icons must be enabled for the replacement to take effect.
    No
    attachmentsMessage attachments used for richer formatting options.If text is not defined, yes
    typeSets the type for publishing, mainly for use by plugins.
    If it is not empty, it must start with custom_".
    No

     

    Example code with parameters

    Here is how to generate a more complete message with parameters, some of which can replace parameters already set during the creation of the webhook (username, preferred channel, avatar...) as indicated in the table above:

    POST /hooks/xxx-clé-générée-xxx HTTP/1.1
    Host: votre-serveur-kchat.xyz
    Content-Type: application/json
    Content-Length: 630
    {
      "channel": "kchatemp",
      "username": "test-automation",
      "icon_url": "https://domain.xyz/wp-content/uploads/2023/06/icon.png",
      "text": "#### Résultats des tests pour le 27 juillet 2023
    @channel veuillez vérifier les tests échoués.
    
    | Composant  | Tests effectués   | Tests échoués                                   |
    |:-----------|:-----------:|:-----------------------------------------------|
    | Serveur     | 948         |  0                           |
    | Client Web | 123         |  2 [(voir détails)](https://linktologs) |
    | Client iOS | 78          |  3 [(voir détails)](https://linktologs) |"
    }

     

    This will cause this message to be displayed in the channel kchatemp of the organization:

    sign



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Display all FAQs for this product
    logo infomaniak
    Prices do not include VAT
    facebook
    twitter
    linkedin
    instagram

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press space Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support Sales contact API REST Report abuse WHOIS

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    ©2025 Infomaniak - Legal documents - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies
    icann-logo
    swiss
    new-iso
    swiss-hosting
    logo infomaniak
    Prices do not include VAT

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press and media Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support offer Sales contact API REST Report abuse WHOIS

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    icann-logo
    swiss
    new-iso
    swiss-hosting

    facebook
    twitter
    linkedin
    instagram
    ©2025 Infomaniak
    Contracts - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies

    Managers

    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.