Sms gateway json data type

Hello.
is there any way to add data types into json encoder of sms gateway configuration?
my sms provider accept only integer data type in mobile phone option, so it should be without any quotes in json sended to sms api.
currently all optional values in json have string type and quotes around them.

I assume you are talking ot the HTTP provider?
https://privacyidea.readthedocs.io/en/latest/configuration/sms_gateway_config.html#http-provider

To my knowledge this is not possible.

If you have more tight restrictions please use the script provider:
https://privacyidea.readthedocs.io/en/latest/configuration/sms_gateway_config.html#script-provider

This is usually quite simple and can be written in the language of your choice.
Look at this example: