One way to do this is via template calls.
https://help.blocsapp.com/knowledge-base/api-calls/#template-calls