Although documentation regarding the XenAPI (XAPI) can be found on the Internet, it's rather scattered, mostly partial and it is quite difficult to find it well organized.
Although I was lucky enough to collect a few reference documents that, in my opinion, represent the best base to start with XAPI, they can be accessed here: