flags endpoint