Added `layer` option to API utils

All API utilities now have an optional layer that can be set. This allows for more fine-grained control of the applications.