# Demande d'ajout de clé API pour les SMS free

**URL:** <https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347>\
**Category:** Demandes livrées\
**Created:** [Juillet 15, 2026, 8:41 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347 "2026-07-15T08:41:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jluc](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jluc/32/12397_2.png) [@Jluc](https://community.gladysassistant.com/u/Jluc)\
**Post date:** [Juillet 15, 2026, 8:41 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/1 "2026-07-15T08:41:15Z")

</div>

**Description**

L’envoi de SMS est très pratique mais il n’est possible aujourd’hui de ne paramétrer qu’un seul numéro. Afin de partager les notifications, serait-il possible d’ajouter une clé pour un second numéro free ?

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [Juillet 15, 2026, 4:48 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/2 "2026-07-15T16:48:49Z")

</div>

J’ajouterai que chaque clé API devrait appartenir à un compte utilisateur, ce qui permet d’envoyer un message à Monsieur ou Madame.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juillet 15, 2026, 5:11 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/3 "2026-07-15T17:11:27Z")

</div>

Cette fonctionnalité était déjà ma liste de TODO car on en avais parlé quand j’avais fait cette intégration

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juillet 16, 2026, 10:46 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/4 "2026-07-16T22:46:17Z")

</div>

J’ai un peu travaillé dessus:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/2/3/23004cd2effd3ce56555430d011b1ba5952a262d.png)

Je ferais un essai ce week-end et mettrais une image à dispo pour test

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juillet 17, 2026, 8:49 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/5 "2026-07-17T20:49:40Z")

</div>

C’est bon, chaque utilisateur peut maintenant mettre sa propre clé API Free.

J’ai aussi ajouté dans la liste des utilisateurs le choix de faire le message à tout le monde

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/8/0/800136a99fdd9ab37563f7c52451d25f1c4724bf.png)

Je vais préparer une image si quelqu’un veut tester

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [Juillet 17, 2026, 9:09 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/6 "2026-07-17T21:09:42Z")

</div>

La PR

> <https://github.com/GladysAssistant/Gladys/pull/2679>
>
> \### Pull Request check-list
> 
> \- \[x\] If your changes affect the code, did you wr…ite the tests?
> \- \[x\] Are server tests passing with coverage? (\`cd server && npm run coverage\`) — Codecov requires \*\*100% coverage on lines changed in this PR\*\*
> \- \[\] Did Cypress E2E tests pass? (\`npm run cypress:run\` from repo root, if UI changed)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new feature/service, did you run the integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices?
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation?
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation?
> \- \[x\] Did you add fake requests data for the demo mode? (N/A — no new widget)
> 
> \### Description of change
> 
> This PR adds \*\*multi-user support to the Free Mobile integration\*\*.
> 
> \#### Problem
> 
> Until now, only the \*\*admin\*\* account could configure a Free Mobile API key. The customer ID and access token were stored as \*\*global\*\* service variables, so Gladys could only send SMS to that single account. There was no way to send an SMS to another user, nor to build scenes targeting a specific user.
> 
> \#### Solution
> 
> Free Mobile is now aligned with the \*\*Telegram / CallMeBot\*\* pattern:
> 
> \- \*\*Per-user configuration\*\*: the \`FREE\_MOBILE\_USERNAME\` and \`FREE\_MOBILE\_ACCESS\_TOKEN\` variables are now stored per-user (\`userRelated: true\`). Each user can enter their own credentials from the integration page to receive SMS.
> \- \*\*Automatic migration\*\*: on service start, the legacy global configuration (if any) is migrated to the \*\*admin\*\* user's per-user configuration, then the old global variables are removed. Existing installations keep working with no manual action.
> \- \*\*New message handler\*\*: a \`message.send(userId, message)\` handler reads the user's own credentials on the fly and sends the SMS.
> \- \*\*Scene action\*\*: the "Send an SMS" action now has a \*\*recipient selector\*\* — you can send to a specific user, or to \*\*all users\*\* who configured Free Mobile.

et l’image en cours de build:

```auto
docker pull willde71/gladys-test:freemobile

```

---

<div class="post-metadata">

**Author:** ![Jluc](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jluc/32/12397_2.png) [@Jluc](https://community.gladysassistant.com/u/Jluc)\
**Post date:** [Juillet 17, 2026, 9:19 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/7 "2026-07-17T21:19:10Z")

</div>

Super, un grand merci @Will_71 . Il ne me restera plus qu’à réussir à paramétrer un second utilisateur 🙂

---

<div class="post-metadata">

**Author:** ![cursor-bot](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cursor-bot/32/22252_2.png) [@cursor-bot](https://community.gladysassistant.com/u/cursor-bot)\
**Post date:** [Octobre 29, 2026, 10:44 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/8 "2026-10-29T10:44:30Z")

</div>

Salut @Jluc !

Chaque utilisateur peut avoir sa propre clé Free Mobile. Ça ne s’est pas fait dans l’intégration native : celle-ci affiche qu’elle sera supprimée dans une prochaine version.

Le remplacement est l’intégration communautaire **Free Mobile SMS** , dans le catalogue (catégorie notifications) :

1. Installe **Free Mobile SMS**.
2. Chaque personne ouvre cette intégration, onglet Configuration, bloc **Mon compte** , et y met son identifiant et sa clé Free.
3. Dans les scènes, remplace **Envoyer un sms** par **Envoyer un message** , sur le canal Free Mobile SMS, en visant l’utilisateur dont le compte est rempli.

L’ancienne action SMS continue d’utiliser l’intégration native, limitée à une clé pour toute la maison. D’où le changement de bloc. Merci @Will_71 pour l’intégration.

Je range ce sujet dans « Demandes livrées ». S’il reste un cas qui ne correspond pas, ouvre un nouveau sujet : ce sera plus simple à suivre.

---

<div class="post-metadata">

**Author:** ![cursor-bot](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cursor-bot/32/22252_2.png) [@cursor-bot](https://community.gladysassistant.com/u/cursor-bot)\
**Post date:** [Octobre 29, 2026, 10:44 UTC](https://community.gladysassistant.com/t/demande-dajout-de-cle-api-pour-les-sms-free/10347/9 "2026-10-29T10:44:41Z")

</div>


