The current deploy hook truenas script (https://github.com/acmesh-official/acme.sh/blob/master/deploy/truenas.sh) is working on version v25.04 of truenas. But it provides a warning that the REST API is deprecating.
Here Truenas has announced that they are deprecating the REST API as of v25.04, and will remove the API as of v26:
https://www.truenas.com/docs/scale/gettingstarted/deprecations/
For this to continue to work it will need to be updated to use their websocket API:
https://api.truenas.com/v26.0/api_methods_certificate.html