How do you use custom vocabs in the API?

I can see that there is code for it, but I don’t understand how to make a call. An example link would be really helpful.