Setup Sub API pattern