Expensify.org/hunger SNAP campaign status
We’re no longer accepting new participants as our focus is on reimbursing existing claims. While we’re unable to provide a specific timeline on when your report will be reimbursed, we’re doing our best to drive donations and keep reimbursements moving forward. If you know anyone who can donate to this campaign please encourage them to enable Personal or Corporate Karma on their Expensify account.

Creating a template

SreeSree Expensify Customer Posts: 3

I am trying to run the following command and it is throwing the error "Couldn't read data from file "[email protected]_template.ftl". Wondering where/how can I create the template?

curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
    -d 'requestJobDescription={
    }' \
    --data-urlencode '[email protected]_template.ftl'


Best Answer

  • Francois LaithierFrancois Laithier Expensify Team Posts: 26 Expensify Team
    Accepted Answer

    Hi there,

    You can see the curl @ operator as a useful way to load the content of a parameter to pass in your POST request from a file, instead of putting it directly in the command line. Essentially, the line --data-urlencode '[email protected]_template.ftl' will instruct curl to load the content of the file expensify_template.ftl, URL-encode it, and pass it in the request under the name template.

    So for this example, you would store your template in a file called expensify_template.ftl in the same directory you're making the request from. If you want to store the template in a different directory, you can also specify its relative or absolute path, e.g. --data-urlencode '[email protected]/path/to/expensify_template.ftl'.

    For a quick test, you can use a pre-made sample templates from the documentation.


Sign In or Register to comment.