API protocol