The strings that are input parameters in API templates are limited to 255 characters. This limit is both in the UI and in the PAPI interface.
Unfortunately you cannot increase it from 255 at this time. This is being looked at to increase in future versions of Portal.
This is as of Portal 4.2.7. Subject to change in the future.