This flow will show the detailed steps of the asynchronous (OAuth based) protocol, and is intended for the developer.
Hosts is a list of comma delimted host names. An empty value allows the root domain.
Example Host Parameters
Domain Name
Hosts
Valid fully qualified domain names for template application
foo.com
foo.com
foo.com
bar
bar.foo.com
foo.com
bar1,bar2,
foo.com|bar1.foo.com|bar2.foo.com
The subsequent pages will get permission, and then allow application of template1 or template2 on domain/host tuples via the API. The message for the site is provided there.