Although the Collaboratory.Lab does not have an API just yet, you can access various other services via their API from the notebooks.