Service API schema and misc