There is some information available here: https://news.fogproject.org/simplified-api-documentation/

@Wayne-Workman has some examples of the API. https://forums.fogproject.org/topic/9779/can-i-use-some-kind-of-script-to-create-image-and-ghost-my-lab-machines/12