How obtain the BPMN schema ?
No need of the API, it is in the bar and is deployed when you add the process to the engine.
For the bpmn2 diagram, you will find the Bonita customized BPMN2 xml to run the process.
For the diagram picture, it is available in the bar, you just have to retrieve the path. And so you can diplay it.