You can find API guidelines in our technical documentation for developers. Each module has its own API and is described in a separate section.
If you plan to use API for Analytics, we highly recommend you to use API for Analytics (new) because in the nearest future the old version will be disabled from our product.