sock api