Adding flow documentation to API