canvas api config