Does CODAP have an API?

Yes, CODAP has an API. For more information, see this FAQ on “How do I make a plugin or game with CODAP?”