Fixed incorrectly indented return statement in the api file