FormService#getStartFormVariables only returns variables if they are defined via the generated start form approach. This should be clarified in the documentation. For example here https://docs.camunda.org/manual/7.6/reference/rest/process-definition/get-form-variables/