assert api