The above code is the only way I can get it to compile but I can’t make a successful post to the API using this code since it expects integers, any help is appreciated.
But if you insist in using String you'd do it this way
String someString = "literal" + String(intval);
Not sure I understand that sentence correctly.
Do you mean that API expects these integers in their binary form?
If so you cannot use request.body as this is a string and as such would not be able to hold any integer values where at least one of the four bytes in the int would be 0x00 as it would terminate the string there and then.
And this would also be a rather obscure API for my feeling
However, if your enpoint expects a JSON string, shouldn't the keys be wrapped in double quotes?