Custom field JSON can be found at http://(Redmine hostname)/custom_fields.json. If you set %header:<header name>% to the default value of custom fields, it will be filled with corresponding header value, for example %header:from%.